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

--- Comment #197 from Jonathan Druart <[email protected]> 
---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to