]> git.koha-community.org Git - koha.git/commit
Bug 28600: (bug 18989 follow-up) Resolve variable scope issue
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 18 Jun 2021 18:20:30 +0000 (15:20 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 24 Jun 2021 09:53:35 +0000 (11:53 +0200)
commitb033366beabb0e59d3c278e8599ba00661ed8be9
tree7251a4e1a531c2e368fd1eff896b7caf628a2a9a
parent883ee12560f11fc2fbf35c72bbf63520ce0e4762
Bug 28600: (bug 18989 follow-up) Resolve variable scope issue

This patch fixes a scope issue. Originally, a variable declared as

our $borcat

was replaced by

my $patron

This patch makes the method not rely on global variables, but have a
parameter for the patron, and thus things are clearer.

To test:
1. Open the OPAC detail page for a record
=> FAIL: The logs show some errors about the $patron variable not
available in the scope
2. Apply this patch
3. Repeat 1
=> SUCCESS: No errors
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
opac/opac-detail.pl