From: Nahuel Angelinetti <[email protected]>

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 <[email protected]>
---
 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

_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha.org/mailman/listinfo/koha-patches

Reply via email to