[Koha-bugs] [Bug 18400] Noisy warns in opac-search.pl during itemtype sorting

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 29 12:49:18 CEST 2017


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

Pongtawat <pongtawat at punsarn.asia> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pongtawat at punsarn.asia

--- Comment #12 from Pongtawat <pongtawat at punsarn.asia> ---
We also encounter this problem in 16.11. My teammate found out the reason for
$itemtype corruption was line 291:

searchcategory => $itemtypes->{$thisitemtype}->{'searchcategory'},

This automatically add a hash ->{'searchcategory'} to $itemtypes.

The correct code should likely be:

searchcategory => $thisitemtype->{'searchcategory'},

I attached a patch for 16.11. We tested this on our 16.11 installation and it
also fix the problem.

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


More information about the Koha-bugs mailing list