Bugzilla – Attachment 19199 Details for
Bug 10484
serials-edit.pl not checking for barcode field before checking for barcode subfield
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10484 - serials-edit.pl not checking for barcode field before checking for barcode subfield
Bug-10484---serials-editpl-not-checking-for-barcod.patch (text/plain), 1.55 KB, created by
Chris Cormack
on 2013-06-23 07:12:48 UTC
(
hide
)
Description:
Bug 10484 - serials-edit.pl not checking for barcode field before checking for barcode subfield
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-06-23 07:12:48 UTC
Size:
1.55 KB
patch
obsolete
>From a53b4a30327a28eefb177d58de175432c4d4b22d Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 17 Jun 2013 12:28:13 -0400 >Subject: [PATCH] Bug 10484 - serials-edit.pl not checking for barcode field > before checking for barcode subfield > >The script serials-edit.pl is not checking for the existence of the >barcode field before checking for barcode subfield for autoBarcode = >incremental. If the barcode field doesn't exist, the script dies with >errors. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > serials/serials-edit.pl | 8 ++++++-- > 1 file changed, 6 insertions(+), 2 deletions(-) > >diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl >index 66d3a4e..34f1031 100755 >--- a/serials/serials-edit.pl >+++ b/serials/serials-edit.pl >@@ -318,8 +318,12 @@ if ( $op and $op eq 'serialchangestatus' ) { > if ( C4::Context->preference('autoBarcode') eq > 'incremental' ) > { >- if ( !$bib_record->field($barcodetagfield) >- ->subfield($barcodetagsubfield) ) >+ if ( >+ !( >+ $bib_record->field($barcodetagfield) >+ && $bib_record->field($barcodetagfield)->subfield($barcodetagsubfield) >+ ) >+ ) > { > my $sth_barcode = $dbh->prepare( > 'select max(abs(barcode)) from items'); >-- >1.7.10.4
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 10484
:
19082
|
19199
|
19304