Bugzilla – Attachment 85478 Details for
Bug 22392
TestBuilder::build_sample_item should allow defining barcode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 22392: Reuse existing pattern
Bug-22392-Reuse-existing-pattern.patch (text/plain), 1.01 KB, created by
Jonathan Druart
on 2019-02-21 19:03:37 UTC
(
hide
)
Description:
Bug 22392: Reuse existing pattern
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2019-02-21 19:03:37 UTC
Size:
1.01 KB
patch
obsolete
>From 573ababd288f431194b0235e29ce45c1e8fa1122 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 21 Feb 2019 16:02:31 -0300 >Subject: [PATCH] Bug 22392: Reuse existing pattern > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > t/lib/TestBuilder.pm | 6 ++---- > 1 file changed, 2 insertions(+), 4 deletions(-) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index b1425e66dd..143c57b994 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -175,10 +175,8 @@ sub build_sample_item { > my $itype = delete $args->{itype} > || $self->build_object( { class => 'Koha::ItemTypes' } )->itemtype; > >- my $barcode = >- exists( $args->{barcode} ) >- ? $args->{barcode} >- : $self->_gen_text( { info => { size => SIZE_BARCODE } } ); >+ my $barcode = delete $args->{barcode} >+ || $self->_gen_text( { info => { size => SIZE_BARCODE } } ); > > my ( undef, undef, $itemnumber ) = C4::Items::AddItem( > { >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 22392
:
85472
|
85477
|
85478
|
85652
|
85653