Bugzilla – Attachment 168008 Details for
Bug 36128
Use of uninitialized value in string eq at /usr/share/koha/lib/C4/Overdues.pm
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch which resolves the issue
0001-Bug-36128-Use-of-uninitialized-value-in-string-eq-at.patch (text/plain), 1.16 KB, created by
Denys Konovalov
on 2024-06-23 12:18:28 UTC
(
hide
)
Description:
Patch which resolves the issue
Filename:
MIME Type:
Creator:
Denys Konovalov
Created:
2024-06-23 12:18:28 UTC
Size:
1.16 KB
patch
obsolete
>From 8c5ff8f64897edb544e81623111b225b76b34356 Mon Sep 17 00:00:00 2001 >From: Denys Konovalov <kontakt@denyskon.de> >Date: Sun, 23 Jun 2024 14:13:35 +0200 >Subject: [PATCH] Bug 36128: Use of uninitialized value in string eq at > /usr/share/koha/lib/C4/Overdues.pm > >Fixes the following error message when running the overdues check cronjob on a Koha system without defined overdue rules: > >/etc/cron.daily/koha-common: >Use of uninitialized value in string eq at /usr/share/koha/lib/C4/Overdues.pm line 686. > >by checking if the variable is defined before comparing it. >--- > C4/Overdues.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/C4/Overdues.pm b/C4/Overdues.pm >index 41674a468a..a2494f7f1e 100644 >--- a/C4/Overdues.pm >+++ b/C4/Overdues.pm >@@ -683,7 +683,7 @@ sub GetBranchcodesWithOverdueRules { > WHERE delay1 IS NOT NULL > ORDER BY branchcode > |); >- if ( $branchcodes->[0] eq '' ) { >+ if ( defined $branchcodes->[0] && $branchcodes->[0] eq '' ) { > # If a default rule exists, all branches should be returned > return Koha::Libraries->search({}, { order_by => 'branchname' })->get_column('branchcode'); > } >-- >2.45.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36128
:
168008
|
168188
|
168189