Koha/cataloguing
Marcel de Rooy 7d8a35585b
Bug 31873: Check ->find before calling ->safe_delete
When there is no item, you cannot safely delete it :)

Resolve this warning:
  Can't call method "safe_delete" on an undefined value at /usr/share/koha/cataloguing/additem.pl line 379
(Line numbers may vary across versions.)

Test plan:
Open item editor.
Add a new item.
Add another tab with same form. Delete new item.
Go back to former tab. Try to delete again.
You should see an alert now on top of the form.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2022-11-03 10:02:55 -03:00
..
value_builder Bug 31536: Add UNIMARC framework plugin to fetch PPN from sudoc.fr 2022-10-04 08:02:58 -03:00
addbiblio.pl
addbooks.pl
additem.pl Bug 31873: Check ->find before calling ->safe_delete 2022-11-03 10:02:55 -03:00
cataloging-home.pl Bug 31162: Add a cataloging module home page 2022-10-18 10:20:58 -03:00
editor.pl
linkitem.pl
merge.pl
merge_ajax.pl
moveitem.pl
plugin_launcher.pl
ysearch.pl
z3950_auth_search.pl
z3950_search.pl