[Koha-bugs] [Bug 30815] New: Use of uninitialized value $charge in numeric gt (>) at /usr/share/koha/lib/C4/Circulation.pm

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri May 20 08:57:28 CEST 2022


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

            Bug ID: 30815
           Summary: Use of uninitialized value $charge in numeric gt (>)
                    at /usr/share/koha/lib/C4/Circulation.pm
 Change sponsored?: ---
           Product: Koha
           Version: 20.11
          Hardware: All
                OS: All
            Status: NEW
          Severity: trivial
          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: 25798

The code on 20.11.17 is:

        # Charge a new rental fee, if applicable
        my ( $charge, $type ) = GetIssuingCharges( $itemnumber, $borrowernumber
);
        if ( $charge > 0 ) {
            AddIssuingCharge($issue, $charge, 'RENT_RENEW');
        }

But it's the same on current master. The line given is the if-clause in line
3171.

The default for rentalcharge and rentalcharge_daily in itemtypes is NULL, maybe
that's the cause?


Referenced Bugs:

https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25798
[Bug 25798] Copyright year to Holds to pull report
-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list