[Koha-bugs] [Bug 23404] Circulation::TooMany error on itemtype when at biblio level

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Jul 31 16:01:00 CEST 2019


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

--- Comment #2 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 91892
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=91892&action=edit
Bug 23404: fix Circulation::TooMany error on itemtype when at biblio level

Circulation::TooMany gets itemtype from $item var beeing a Koha::Item
unblessed.
When itemtype is at biblio level, calling $item->{'itemtype'} is wrong.

Test plan :
1) On a catalog with itemtype at item level : pref item-level_itypes=1
2) Create a biblio record with itemtype BOOK
3) Create an item on this biblio record with itemtype BOOK
4) Delete all issuing rules
5) Create a issuing rule with itemtype BOOK, any catagorie, any branch
6) Check-out the item
7) => Checkout is allowed
8) Check-in item
9) Change itemtype at biblio level : pref item-level_itypes=0
10) Check-out the item
11) => Checkout is not allowed
    You see message "No circulation rule is defined for this patron and
itemtype combination"

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list