[Koha-bugs] [Bug 29410] Dates compared arithmetically in MsgType.pm (warns: Argument isn't numeric in numeric ne)

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Nov 5 10:12:20 CET 2021


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

--- Comment #2 from Andrew Nugged <nugged at gmail.com> ---
there are two pieces of the code:

    if ( ( $i = $item->recall_date ) != 0 ) {
        $resp .= add_field( FID_RECALL_DATE, timestamp($i), $server );
    }
    if ( ( $i = $item->hold_pickup_date ) != 0 ) {
        $resp .= add_field( FID_HOLD_PICKUP_DATE, timestamp($i), $server );
    }


when those emits the warning,

Argument "2021-11-04" isn't numeric in numeric ne (!=) at
/usr/share/koha/lib/C4/SIP/Sip/MsgType.pm

I that dumped, 'C4::SIP::ILS::Item=HASH(0x556838ade6a8)' comes with
hold_pickup_date '2021-11-04' which is 'SCALAR'

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