[Koha-bugs] [Bug 21842] always test Koha::ItemType in defined

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 15 11:55:05 CET 2018


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

--- Comment #2 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 82354
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82354&action=edit
Bug 21842: test Koha::ItemType in defined in patron summary print

Like Bug 19194 calls on $itemtype->value must test the object is defined.
This patch fixes members/summary-print.pl

Test plan :
1) Define system preference item-level_itypes on "specific item"
2) Define in framework a subfield of items field : mapped on items.itype and
not mandatory
3) Create an item without value on this subfield
4) Go on a patron page
5) Checkout this item
6) Click on "Print" > "Print summary"
7) Without patch you get the error :
Can't call method "description" on an undefined value
8) With patch you see the itemtype description

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


More information about the Koha-bugs mailing list