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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 27 09:09:06 CET 2018


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

Fridolin SOMERS <fridolin.somers at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #82355|0                           |1
        is obsolete|                            |

--- Comment #7 from Fridolin SOMERS <fridolin.somers at biblibre.com> ---
Created attachment 82657
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=82657&action=edit
Bug 21842: test Koha::ItemType in defined in transfers to receive

Like Bug 19194 calls on $itemtype->value must test the object is defined.
This patch fixes circ/transferstoreceive.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) Create a transfers to receive on this item
5) Go to Circulation > Transfers to receive
6) Without patch you get the error :
Can't call method "description" on an undefined value
7) 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