[Koha-patches] [PATCH] Bug 2935: Patch to fix location in routing slip.

Garry Collum gcollum at gmail.com
Fri Jul 24 03:25:43 CEST 2009


routing-preview.pl and routing.pl were pointing to a non-existent column in the borrowers table.  This patch replaces streetaddress with branchcode.
---
 serials/routing-preview.pl |    2 +-
 serials/routing.pl         |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/serials/routing-preview.pl b/serials/routing-preview.pl
index 7a33010..9ccc30f 100755
--- a/serials/routing-preview.pl
+++ b/serials/routing-preview.pl
@@ -100,7 +100,7 @@ my @results;
 my $data;
 for(my $i=0;$i<$routing;$i++){
     $data=GetMember($routinglist[$i]->{'borrowernumber'},'borrowernumber');
-    $data->{'location'}=$data->{'streetaddress'};
+    $data->{'location'}=$data->{'branchcode'};
     $data->{'name'}="$data->{'firstname'} $data->{'surname'}";
     $data->{'routingid'}=$routinglist[$i]->{'routingid'};
     $data->{'subscriptionid'}=$subscriptionid;
diff --git a/serials/routing.pl b/serials/routing.pl
index d84076a..63328b9 100755
--- a/serials/routing.pl
+++ b/serials/routing.pl
@@ -106,7 +106,7 @@ my @results;
 my $data;
 for(my $i=0;$i<$routing;$i++){
     $data=GetMember($routinglist[$i]->{'borrowernumber'},'borrowernumber');
-    $data->{'location'}=$data->{'streetaddress'};
+    $data->{'location'}=$data->{'branchcode'};
     $data->{'name'}="$data->{'firstname'} $data->{'surname'}";
     $data->{'routingid'}=$routinglist[$i]->{'routingid'};
     $data->{'subscriptionid'}=$subscriptionid;
-- 
1.5.6.5




More information about the Koha-patches mailing list