[Koha-bugs] [Bug 32379] CRASH: Can't call method "itemlost" on an undefined value

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Nov 2 15:10:39 CET 2023


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

David Nind <david at davidnind.com> changed:

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

--- Comment #3 from David Nind <david at davidnind.com> ---
Created attachment 158264
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=158264&action=edit
Bug 32379: Add check on existing item

Simplest fix; bail out with output_error.

Test plan:
Try
/cgi-bin/koha/cataloguing/additem.pl?biblionumber=1&op=saveitem&itemnumber=999999
Note: Replace 1 by existing biblionumber, and iitem 999999 should not exist.
You should get the 404 screen now.

Signed-off-by: Marcel de Rooy <m.de.rooy at rijksmuseum.nl>
Signed-off-by: David Nind <david at davidnind.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list