[Koha-patches] [PATCH] [Bug 6195 - Supplemental] Remove redundant variable

Colin Campbell colin.campbell at ptfs-europe.com
Fri Apr 15 14:01:27 CEST 2011


The 'first' element in the structure PrepareSerialsData
was only used in the opac template. Remove assignment
as it is now obsolete (and potentially confusing )
---
 C4/Serials.pm |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/C4/Serials.pm b/C4/Serials.pm
index 32c9bcb..1f8c170 100644
--- a/C4/Serials.pm
+++ b/C4/Serials.pm
@@ -441,7 +441,6 @@ sub PrepareSerialsData {
     foreach my $key ( sort { $b cmp $a } keys %tmpresults ) {
         push @res, $tmpresults{$key};
     }
-    $res[0]->{'first'} = 1;
     return \@res;
 }
 
-- 
1.7.4.2



More information about the Koha-patches mailing list