[Koha-bugs] [Bug 13150] C4::Search::searchResults triggers software error by passing incorrect values to GetAuthorisedValueDesc

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Oct 27 18:49:16 CET 2014


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13150

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
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"
) {

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


More information about the Koha-bugs mailing list