[Koha-patches] [PATCH] [SIGNED-OFF] Bug id:6783 - Circulation restrictions dont work when other withdrawn reasons are used

Nicole C. Engard nengard at bywatersolutions.com
Fri Sep 9 05:21:25 CEST 2011


From: Meenakshi.R <meenakshi.r at osslabs.biz>

Circulation restrictions work only when withdrawn reason (value 1) is selected.
If ones sets up other withdrawn reasons using authorized values, and selects
one of them (e.g. value 2), circulation restrictions don't work. This changes
fixes this problem.

Signed-off-by: Amit Gupta <amit.gupta at osslabs.biz>
Signed-off-by: Nicole C. Engard <nengard at bywatersolutions.com>
---
 C4/Circulation.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Circulation.pm b/C4/Circulation.pm
index 47068f9..520c116 100644
--- a/C4/Circulation.pm
+++ b/C4/Circulation.pm
@@ -817,7 +817,7 @@ sub CanBookBeIssued {
             }
         }
     }
-    if ( $item->{'wthdrawn'} && $item->{'wthdrawn'} == 1 )
+    if ( $item->{'wthdrawn'} && $item->{'wthdrawn'} > 0 )
     {
         $issuingimpossible{WTHDRAWN} = 1;
     }
-- 
1.7.2.3



More information about the Koha-patches mailing list