[Koha-patches] [PATCH] Bug 5043 Fix merge error in z3950_search.pl
Colin Campbell
colin.campbell at ptfs-europe.com
Wed Jul 21 10:55:09 CEST 2010
Patch overwrote part of earlier fix
causing row to be used as a hash not a hash_ref
reinstate earlier code
---
acqui/z3950_search.pl | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/acqui/z3950_search.pl b/acqui/z3950_search.pl
index 444c893..8d436cc 100755
--- a/acqui/z3950_search.pl
+++ b/acqui/z3950_search.pl
@@ -90,14 +90,14 @@ my $DEBUG = 0; # if set to 1, many debug message are send on syslog.
my $frameworks = getframeworks;
my @frameworkcodeloop;
foreach my $thisframeworkcode ( keys %$frameworks ) {
- my %row = (
+ my $row = {
value => $thisframeworkcode,
frameworktext => $frameworks->{$thisframeworkcode}->{'frameworktext'},
- );
- if ( $row{'value'} eq $frameworkcode){
- $row{'active'} = 'true';
+ };
+ if ( $row->{value} eq $frameworkcode){
+ $row->{active} = 'true';
}
- push @frameworkcodeloop, \%row;
+ push @frameworkcodeloop, $row;
}
$template->param( frameworkcode => $frameworkcode,
--
1.7.1.1
More information about the Koha-patches
mailing list