Bugzilla – Attachment 67134 Details for
Bug 19315
Routing preview may use wrong biblionumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 19315 - Use bibnum instead of biblionumber in routing-preview.pl and add item check
Bug-19315---Use-bibnum-instead-of-biblionumber-in-.patch (text/plain), 1.71 KB, created by
Nick Clemens (kidclamp)
on 2017-09-14 12:26:50 UTC
(
hide
)
Description:
Bug 19315 - Use bibnum instead of biblionumber in routing-preview.pl and add item check
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2017-09-14 12:26:50 UTC
Size:
1.71 KB
patch
obsolete
>From d8b264385ffd4e883f8edee40205e12183b53373 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Thu, 14 Sep 2017 12:23:09 +0000 >Subject: [PATCH] Bug 19315 - Use bibnum instead of biblionumber in > routing-preview.pl and add item check > >To test: > 1 - Create a serial subscription attached to a record > 2 - Receive some issues > 3 - Edit the subscription > 4 - Go to serails collection > 5 - Try to print a routing list > 6 - You may or may not get the right serial > 7 - Additionally create a subscription attached to a bib with no items > 8 - Try to print a routing list for this serial > 9 - You will get 'Internal server error' >10 - Apply patch >11 - Print routing list for first serial >12 - You will always get the correct bib >13 - Print routing list for second serial >14 - You should no longer get an error >--- > serials/routing-preview.pl | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/serials/routing-preview.pl b/serials/routing-preview.pl >index 73d89df..637730e 100755 >--- a/serials/routing-preview.pl >+++ b/serials/routing-preview.pl >@@ -65,10 +65,10 @@ my ($template, $loggedinuser, $cookie); > > if($ok){ > # get biblio information.... >- my $biblionumber = $subs->{'biblionumber'}; >+ my $biblionumber = $subs->{'bibnum'}; > my ($count2,@bibitems) = GetBiblioItemByBiblioNumber($biblionumber); >- my @itemresults = GetItemsInfo( $subs->{biblionumber} ); >- my $branch = $itemresults[0]->{'holdingbranch'}; >+ my @itemresults = GetItemsInfo( $subs->{bibnum} ); >+ my $branch = scalar @itemresults ? $itemresults[0]->{'holdingbranch'} : $subs->{branchcode}; > my $branchname = Koha::Libraries->find($branch)->branchname; > > if (C4::Context->preference('RoutingListAddReserves')){ >-- >2.1.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 19315
:
67134
|
67164
|
67668
|
67669
|
70022
|
70026
|
70027
|
70028
|
70044
|
70045
|
70046