https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27058

--- Comment #28 from Jonathan Druart <[email protected]> 
---
1361 sub ItemsAnyAvailableAndNotRestricted {

1373         # we can return (end the loop) when first one found:
1374         return 1
1375             unless $i->itemlost
1376             || $i->notforloan
1377             || $i->withdrawn
1378             || $i->onloan


1296 sub IsAvailableForItemLevelRequest {
1312     return 0 if
1313         $notforloan_per_itemtype ||
1314         $item->itemlost        ||
1315         $item->notforloan > 0  ||
1316         $item->withdrawn        ||

The different between the 2 $item->notforloan tests are obvious here?



Especially with that in the history:

commit 87a8103c488961a8508f9b5b32fa165bc47301e5
Date:   Thu Jul 10 16:38:28 2008 -0400
    Further update to allow notforloan < 0 items to be placed on hold. This is
a workaround for the lack of a notforhold flag.

-                               $item->{notforloan} or
+                               ( $item->{notforloan} > 0 ) or

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to