Bug 13947: Correct call to GetBiblio to receive correct return value
authorMark Tompsett <mtompset@hotmail.com>
Thu, 2 Apr 2015 15:15:14 +0000 (11:15 -0400)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Thu, 16 Apr 2015 17:10:54 +0000 (14:10 -0300)
When you attempt to edit the manual history for a subscription,
the title is blank. This is a result of an incorrect use of the
GetBiblio function.

TEST PLAN
---------
1) Log in to staff client
2) Serials
3) Search for an existing serial with manual history checked.
   -- creating one as needed is left as an exercise to the reader.
4) Click on the title of the serial for the details page.
5) Go to the Planning tab and click 'Edit History'
   -- Heading will be 'Subscription history for' without a
      title.
6) Apply patch
7) Refresh page.
   -- Heading will include the title correctly.
8) run koha qa test tools

Signed-off-by: Jacek Ablewicz <abl@biblos.pk.edu.pl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
serials/subscription-history.pl

index 9310b5d..267afcb 100755 (executable)
@@ -71,7 +71,7 @@ if($op && $op eq 'mod') {
     exit;
 } else {
     my $history = GetSubscriptionHistoryFromSubscriptionId($subscriptionid);
-    my (undef, $biblio) = GetBiblio($history->{'biblionumber'});
+    my $biblio  = GetBiblio($history->{'biblionumber'});
 
     $template->param(
         subscriptionid  => $subscriptionid,