]> git.koha-community.org Git - koha.git/commit
Bug 16198: Fix regression in OPAC suggestions
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 5 Apr 2016 07:27:46 +0000 (08:27 +0100)
committerBrendan A Gallagher <brendan@bywatersolutions.com>
Wed, 6 Apr 2016 22:05:49 +0000 (22:05 +0000)
commit833afc12454cfebefe22ec57722e7c36ada01dea
tree6348cc0a1149ee66d5e289071611b069645806db
parent22a33b7868bf1f0b312d548c5abdb642bfa72d6e
 Bug 16198: Fix regression in OPAC suggestions

Introduced by
  commit d564d3732d95455b4626dfa8ca711cd658003c17
  Bug 15629: Koha::Libraries - Remove GetBranchInfo

If the branchcodesuggestedby is not defined, the find won't return
anything and ->branchname on an undefined value will raise
  Can't call method "branchname" on an undefined value at
  /home/katrin/kohaclone/opac/opac-suggestions.pl line 153.

Test plan:
-Staff
Create a patron
Use this patron to create a suggestion
Delete the patron

-OPAC
Logout and trigger opac/opac-suggestions.pl

Without this patch, you will get an error
With this patch applied, everything should be ok

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Works ok following test plan
No errors

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Brendan A Gallagher <brendan@bywatersolutions.com>
opac/opac-suggestions.pl