From 12b2e9b4f20aaec9ec1cd6b962a05a0455b3262a Mon Sep 17 00:00:00 2001 From: Nahuel Angelinetti Date: Mon, 10 Nov 2008 10:58:40 +0100 Subject: [PATCH] Bad account expiration message when a user isn't, and no message when it is 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 --- reserve/request.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/reserve/request.pl b/reserve/request.pl index 5786ac886b..874b8b21fa 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'} ) { -- 2.39.5