Follow up : MT1902
authorHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 11 Nov 2009 14:36:00 +0000 (15:36 +0100)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 11 Nov 2009 15:53:28 +0000 (16:53 +0100)
aaa8d0c80c893dbd92ced6c933263002cf6b048b
This fixes the loop with dates with was using implicit variable

serials/subscription-detail.pl

index 9e358a2..0b8e579 100755 (executable)
@@ -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});