https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40403

--- Comment #1 from Jonathan Druart <[email protected]> ---
Created attachment 184125
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184125&action=edit
Bug 40403: Remove warning from Circulation_holdsqueue.t

Use of uninitialized value in addition (+) at /kohadevbox/koha/C4/Biblio.pm
line 3049.

The context is:

3045     my $current_issues = $biblioitem->totalissues // 0;
3046     if ( defined $value ) {
3047         $totalissues = $value;
3048     } else {
3049         $totalissues = $biblioitem->totalissues + $increase;
3050     }
3051     return 0 if $current_issues == $totalissues;    # No need to update if
no changes

It feels correct to use $current_issues to suppress the warning

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to