[Koha-patches] [PATCH] Bad account expiration message when a user isn't, and no message when it is

henridamien.laurent at biblibre.com henridamien.laurent at biblibre.com
Fri Mar 6 11:38:01 CET 2009


From: Nahuel Angelinetti <nahuel.angelinetti at biblibre.com>

When you try to hold a document for a non expired user, a warning tell you the account is expired, and when the account is expired there is no
message.
This patch do the inverse.

Signed-off-by: Henri-Damien LAURENT <henridamien.laurent at biblibre.com>
---
 reserve/request.pl |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/reserve/request.pl b/reserve/request.pl
index 5786ac8..874b8b2 100755
--- a/reserve/request.pl
+++ b/reserve/request.pl
@@ -115,8 +115,10 @@ if ($cardnumber) {
     if ($expiry_date and $expiry_date ne '0000-00-00' and
             Date_to_Days(split /-/,$date) > Date_to_Days(split /-/,$expiry_date)) {
 		$messages = $expiry = 1;
+    }else{
+        $expiry = 0;
     }
-     
+
 
     # check if the borrower make the reserv in a different branch
     if ( $borrowerinfo->{'branchcode'} ne C4::Context->userenv->{'branch'} ) {
-- 
1.5.6.3




More information about the Koha-patches mailing list