Summary: | C4::Search::searchResults triggers software error by passing incorrect values to GetAuthorisedValueDesc | ||
---|---|---|---|
Product: | Koha | Reporter: | Barton Chittenden <barton> |
Component: | Searching | Assignee: | Galen Charlton <gmcharlt> |
Status: | CLOSED INVALID | QA Contact: | Testopia <testopia> |
Severity: | enhancement | ||
Priority: | P5 - low | CC: | kyle |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | --- |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: |
Description
Barton Chittenden
2014-10-27 15:13:59 UTC
This was caused by memcached needing a restart on this particular server. However, this could be solved in the code with a bit more testing: diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 61e4c3b..17afeaf 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -1616,7 +1616,7 @@ sub GetAuthorisedValueDesc { if ( !$category ) { - return $value unless defined $tagslib->{$tag}->{$subfield}->{'authorised_value'}; + return $value unless $tagslib && defined $tagslib->{$tag}->{$subfield}->{'authorised_value'}; #---- branch if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches" ) { |