]> git.koha-community.org Git - koha.git/commit
Bug 19978: Fix ITEMTYPECAT behaviour
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 16 Jan 2018 13:25:00 +0000 (10:25 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 22 Feb 2018 01:13:34 +0000 (01:13 +0000)
commit7f724cc129558da9fd5a558bd0c8b21ebc62174b
treeb243ab5eb4b3f4c0eadba36877fdfff1b6757f40
parent8e29e0f106bc625bf9dcd9574f3636d56989939f
Bug 19978: Fix ITEMTYPECAT behaviour

ITEMTYPECAT permits to group and hide item types at the OPAC (see bug
10937 for a complete description).

Since commit 091d6c513bcbee224ff06477e79be48cea7fe825
    Bug 17843: Replace C4::Koha::getitemtypeinfo with Koha::ItemTypes
the code assume that they are item types. Before it just assigned undef
to the description.

Test plan:
Create ITEMTYPECAT authorised values
Assign an item type to this authorised value group
Search for a item using this item type at the OPAC
Without this patch applied you get:
Can't call method "translated_description" on an undefined value at
/home/vagrant/kohaclone/opac/opac-search.pl line 231.

With this patch applied the search result is displayed.

Make sure the original feature still works.

Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/opac-search.pl