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

David Nind <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #184125|0                           |1
        is obsolete|                            |

--- Comment #2 from David Nind <[email protected]> ---
Created attachment 184295
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=184295&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

Signed-off-by: David Nind <[email protected]>

-- 
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