[Koha-bugs] [Bug 28600] Variable "$patron" is not available
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 18 20:59:27 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28600
--- Comment #2 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 122171
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=122171&action=edit
Bug 28600: 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 at theke.io>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list