[Koha-bugs] [Bug 30816] New: Use of uninitialized value in numeric ge (>=) at /usr/share/koha/lib/C4/Serials.pm
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 20 09:06:37 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30816
Bug ID: 30816
Summary: Use of uninitialized value in numeric ge (>=) at
/usr/share/koha/lib/C4/Serials.pm
Change sponsored?: ---
Product: Koha
Version: 20.11
Hardware: All
OS: All
Status: NEW
Severity: minor
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: koha-bugs at lists.koha-community.org
Reporter: katrin.fischer at bsz-bw.de
QA Contact: testopia at bugs.koha-community.org
Blocks: 25790
The code here is:
for(my $i = 0; $i < $count; $i++) {
if($calc{'X'}) {
# check if we have to increase the new value.
$newinnerloop1 += 1;
if ($newinnerloop1 >= $pattern->{every1}) {
$newinnerloop1 = 0;
$newlastvalue1 += $pattern->{add1};
}
# reset counter if needed.
$newlastvalue1 = $pattern->{setto1} if ($newlastvalue1 >
$pattern->{whenmorethan1});
}
And above:
$newinnerloop1 = $subscription->{innerloop1} || 0;
I believe this is caused by subscription_numberpatterns.every1 being NULL.
The default in the database is NULL, but I haven't tested if this can be set
manually from the GUI yet.
Referenced Bugs:
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25790
[Bug 25790] [OMNIBUS] warnings removal
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list