From: Henri-Damien LAURENT Date: Wed, 11 Nov 2009 14:36:00 +0000 (+0100) Subject: Follow up : MT1902 X-Git-Tag: v3.02.00-alpha~54^2~62 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=27460a7ab4a1c08e3ee1a40bc1fdbfcd4feb7d82;p=koha_fer Follow up : MT1902 aaa8d0c80c893dbd92ced6c933263002cf6b048b This fixes the loop with dates with was using implicit variable --- diff --git a/serials/subscription-detail.pl b/serials/subscription-detail.pl index 9e358a2305..0b8e57975d 100755 --- a/serials/subscription-detail.pl +++ b/serials/subscription-detail.pl @@ -84,7 +84,7 @@ my ($user, $sessionID, $flags); # COMMENT hdl : IMHO, we should think about passing more and more data hash to template->param rather than duplicating code a new coding Guideline ? for my $date qw(startdate enddate firstacquidate histstartdate histenddate){ - $$subs{$_} = format_date($$subs{$_}) if $_ && $$subs{$_}; + $$subs{$date} = format_date($$subs{$date}) if $date && $$subs{$date}; } $subs->{abouttoexpire} = abouttoexpire($subs->{subscriptionid});