Bugzilla – Attachment 85472 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: Allow barcode to be passed to build_sample_item
Bug-22392-Allow-barcode-to-be-passed-to-buildsampl.patch (text/plain), 1.18 KB, created by
Martin Renvoize (ashimema)
on 2019-02-21 17:27:16 UTC
(
hide
)
Description:
Bug 22392: Allow barcode to be passed to build_sample_item
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2019-02-21 17:27:16 UTC
Size:
1.18 KB
patch
obsolete
>From c67151e462eae2e0ffd43941174e1289a4a823ff Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Thu, 21 Feb 2019 17:26:33 +0000 >Subject: [PATCH] Bug 22392: Allow barcode to be passed to build_sample_item > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > t/lib/TestBuilder.pm | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > >diff --git a/t/lib/TestBuilder.pm b/t/lib/TestBuilder.pm >index be2a83491e..b1425e66dd 100644 >--- a/t/lib/TestBuilder.pm >+++ b/t/lib/TestBuilder.pm >@@ -175,11 +175,16 @@ 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 ( undef, undef, $itemnumber ) = C4::Items::AddItem( > { > homebranch => $library, > holdingbranch => $library, >- barcode => $self->_gen_text( { info => { size => SIZE_BARCODE } } ), >+ barcode => $barcode, > itype => $itype, > %$args, > }, >-- >2.20.1
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