Bugzilla – Attachment 77543 Details for
Bug 21171
Remove C4::Serials::is_barcode_in_use which is not used anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 21171: Remove C4::Serials::is_barcode_in_use
Bug-21171-Remove-C4Serialsisbarcodeinuse.patch (text/plain), 1.25 KB, created by
Jonathan Druart
on 2018-08-07 19:36:49 UTC
(
hide
)
Description:
Bug 21171: Remove C4::Serials::is_barcode_in_use
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-08-07 19:36:49 UTC
Size:
1.25 KB
patch
obsolete
>From 67d93a99ff4080c4729c894a33a162c3600eed43 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 7 Aug 2018 16:35:25 -0300 >Subject: [PATCH] Bug 21171: Remove C4::Serials::is_barcode_in_use > >Bug 15168 removed C4::Serials::ItemizeSerials, it was the only place >where C4::Serials::is_barcode_in_use was used. > >Test plan: > git grep is_barcode_in_use >should not return anything > prove -r t/db_dependent/Serials* >should return green >--- > C4/Serials.pm | 20 -------------------- > 1 file changed, 20 deletions(-) > >diff --git a/C4/Serials.pm b/C4/Serials.pm >index 0f6256e091..21aa3c8f3a 100644 >--- a/C4/Serials.pm >+++ b/C4/Serials.pm >@@ -2520,26 +2520,6 @@ sub _numeration { > return $string; > } > >-=head2 is_barcode_in_use >- >-Returns number of occurrences of the barcode in the items table >-Can be used as a boolean test of whether the barcode has >-been deployed as yet >- >-=cut >- >-sub is_barcode_in_use { >- my $barcode = shift; >- my $dbh = C4::Context->dbh; >- my $occurrences = $dbh->selectall_arrayref( >- 'SELECT itemnumber from items where barcode = ?', >- {}, $barcode >- >- ); >- >- return @{$occurrences}; >-} >- > =head2 CloseSubscription > > Close a subscription given a subscriptionid >-- >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 21171
: 77543