Koha/circ
Petro Vashchuk c3d2268756 Bug 27548: "use of uninitialized value" warning on branchoverdues.pl
On the beginning we have empty "location" parameter for this form,
but that not taken into account in comparison and undef warning emitted:
"Use of uninitialized value $location in string eq at
/usr/share/koha/intranet/cgi-bin/circ/branchoverdues.pl line 72" in branchoverdues.pl

Fixed by adding pre-check for $location.

To reproduce:
    1) Head over to "Circulation ->Overdues with fines" page. Check
       intranet-error.log where there will be many warnings
       "Use of uninitialized value $location in string eq at /usr/share/koha/intranet/cgi-bin/circ/branchoverdues.pl line 72".
    2) Apply the patch, refresh the "Overdues with fines" page.
    3) Ensure that the new "use of uninitialized value" warnings didn't appear in the console.

Signed-off-by: David Nind <david@davidnind.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2021-02-01 17:20:37 +01:00
..
add_message.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
article-request-slip.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
article-requests.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
bookcount.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
branchoverdues.pl Bug 27548: "use of uninitialized value" warning on branchoverdues.pl 2021-02-01 17:20:37 +01:00
branchtransfers.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
checkout-notes.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
circulation-home.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
circulation.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
del_message.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
hold-transfer-slip.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
offline-mf.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
offline.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
on-site_checkouts.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
overdue.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
pendingreserves.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
renew.pl Bug 24083: Add support for unseen_renewals 2020-11-11 16:09:58 +01:00
request-article.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
reserveratios.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
returns.pl Bug 27011: Remove unused $name variable 2021-01-21 15:40:29 +01:00
set-library.pl Bug 24786: (follow-up) Cache the register_name in the session 2020-11-06 15:40:00 +01:00
transfer-slip.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
transferstoreceive.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
view_holdsqueue.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
waitingreserves.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ypattrodue-attr-search-authvalue.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00
ysearch.pl Bug 25898: Prohibit indirect object notation 2020-10-15 12:56:30 +02:00