[Koha-bugs] [Bug 31873] Can't call method "safe_delete" on an undefined value at cataloguing/additem.pl
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Oct 19 21:34:55 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31873
David Nind <david at davidnind.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #142155|0 |1
is obsolete| |
--- Comment #4 from David Nind <david at davidnind.com> ---
Created attachment 142206
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=142206&action=edit
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 at rijksmuseum.nl>
Signed-off-by: David Nind <david at davidnind.com>
https://bugs.koha-community.org/show_bug.cgi?id=31783
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list