From 073f4fa7c36e1031ad0c7c9333ab051d8d9b0873 Mon Sep 17 00:00:00 2001 From: "Meenakshi.R" Date: Tue, 6 Sep 2011 12:59:56 +0530 Subject: [PATCH] Bug id:6783 - Circulation restrictions dont work when other withdrawn reasons are used 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 Signed-off-by: Nicole C. Engard Signed-off-by: Chris Cormack --- C4/Circulation.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Circulation.pm b/C4/Circulation.pm index 47068f9e58..520c1162cd 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; } -- 2.39.5