koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/C4 Reserves2.pm [dev_week]


From: Kyle Hall
Subject: [Koha-cvs] koha/C4 Reserves2.pm [dev_week]
Date: Thu, 20 Mar 2008 16:09:44 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         dev_week
Changes by:     Kyle Hall <kylemhall>   08/03/20 16:09:44

Modified files:
        C4             : Reserves2.pm 

Log message:
        Bugfix. Reserves without expiration dates were being canceled 
automatically.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Reserves2.pm?cvsroot=koha&only_with_tag=dev_week&r1=1.38.4.7&r2=1.38.4.8

Patches:
Index: Reserves2.pm
===================================================================
RCS file: /sources/koha/koha/C4/Attic/Reserves2.pm,v
retrieving revision 1.38.4.7
retrieving revision 1.38.4.8
diff -u -b -r1.38.4.7 -r1.38.4.8
--- Reserves2.pm        31 Oct 2007 12:14:21 -0000      1.38.4.7
+++ Reserves2.pm        20 Mar 2008 16:09:44 -0000      1.38.4.8
@@ -3,7 +3,7 @@
 
 package C4::Reserves2;
 
-# $Id: Reserves2.pm,v 1.38.4.7 2007/10/31 12:14:21 kylemhall Exp $
+# $Id: Reserves2.pm,v 1.38.4.8 2008/03/20 16:09:44 kylemhall Exp $
 
 # Copyright 2000-2002 Katipo Communications
 # Copyright 2007 Liblime
@@ -109,6 +109,7 @@
     my $sth = $dbh->prepare(
         "UPDATE reserves SET priority = ?, cancellationdate = CURRENT_DATE()
          WHERE expirationDate IS NOT NULL 
+         AND exirationDate != '0000-00-00'
          AND expirationDate <= CURRENT_DATE()"
     );
                




reply via email to

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