[Koha-bugs] [Bug 14385] Extend OpacHiddenItems to allow specifying exempt borrower categories

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Dec 18 12:24:08 CET 2019


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

--- Comment #197 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
>From this commit 70651422a7517338a68e22321d9918757746ef33
    Bug 14385: (QA follow-up) Additional changes and fixes

@ Biblio.pm:1551 @ sub GetAuthorisedValueDesc {

         #---- branch
         if ( $tagslib->{$tag}->{$subfield}->{'authorised_value'} eq "branches"
) {
-            return Koha::Libraries->find($value)->branchname;
+            my $branch = Koha::Libraries->find($value);
+            return $branch? $branch->branchname: q{};
         }


We are actually hiding a data inconsistency. I would recommend to revert that
change and fix the failing test properly instead.

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


More information about the Koha-bugs mailing list