koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/serials subscription-renew.pl


From: Henri-Damien LAURENT
Subject: [Koha-cvs] koha/serials subscription-renew.pl
Date: Tue, 29 May 2007 16:54:50 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Changes by:     Henri-Damien LAURENT <hdl>      07/05/29 16:54:50

Modified files:
        serials        : subscription-renew.pl 

Log message:
        Bug Fix :
        If cannot GetExpirationDate (because frequency is unknown...) Then take 
todays'date as startdate for the renewal.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/serials/subscription-renew.pl?cvsroot=koha&r1=1.8&r2=1.9

Patches:
Index: subscription-renew.pl
===================================================================
RCS file: /cvsroot/koha/koha/serials/subscription-renew.pl,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -b -r1.8 -r1.9
--- subscription-renew.pl       24 Apr 2007 13:54:30 -0000      1.8
+++ subscription-renew.pl       29 May 2007 16:54:50 -0000      1.9
@@ -18,7 +18,7 @@
 # Koha; if not, write to the Free Software Foundation, Inc., 59 Temple Place,
 # Suite 330, Boston, MA  02111-1307 USA
 
-# $Id: subscription-renew.pl,v 1.8 2007/04/24 13:54:30 hdl Exp $
+# $Id: subscription-renew.pl,v 1.9 2007/05/29 16:54:50 hdl Exp $
 
 =head1 NAME
 
@@ -79,7 +79,7 @@
 
 my $subscription= GetSubscription($subscriptionid);
 
-$template->param(startdate => format_date(GetExpirationDate($subscriptionid)),
+$template->param(startdate => 
format_date(GetExpirationDate($subscriptionid)||POSIX::strftime("%Y-%m-%d",localtime)),
                 numberlength => $subscription->{numberlength},
                 weeklength => $subscription->{weeklength},
                 monthlength => $subscription->{monthlength},




reply via email to

[Prev in Thread] Current Thread [Next in Thread]