From 9046a26d687b50faf9ad1050acb8a8384fabdf76 Mon Sep 17 00:00:00 2001 From: Garry Collum Date: Thu, 23 Jul 2009 21:25:43 -0400 Subject: [PATCH] Bug 2935: Patch to fix location in routing slip. routing-preview.pl and routing.pl were pointing to a non-existent column in the borrowers table. This patch replaces streetaddress with branchcode. Signed-off-by: Galen Charlton --- 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 7a33010d10..9ccc30fe1d 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 d84076a490..63328b927d 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; -- 2.39.2