[Koha-bugs] [Bug 3696] checking in invalid item causes break of comm

bugzilla-daemon at kohaorg.ec2.liblime.com bugzilla-daemon at kohaorg.ec2.liblime.com
Sun Oct 11 23:27:57 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3696





--- Comment #1 from Patrick Langer <patrick.langer at easycheck.org>  2009-10-11 21:27:55 ---
In SIP::ILS Checkin around row 180

$circ->item($item = new ILS::Item $item_id)

returns an undefined $item when the barcode is not found, causing the
$circ->do_checkin to break.

I suggest to insert

if (!defined($item)) {
    $circ->screen_msg("No such item.");
} else {
[rest of the transaction part]
}

to catch this.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list