Koha/koha-tmpl/intranet-tmpl/prog/en/modules
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
..
acqui Bug 32076: Add page-section to basketgroup.tt and clean-up markup 2022-11-03 10:02:07 -03:00
admin Bug 32006: Add page-section for local use system preferences 2022-11-03 09:52:38 -03:00
authorities Bug 31877: Fix capitalization: "Delete this Tag" and "Repeat this Tag" 2022-11-02 19:24:29 -03:00
basket
batch
catalogue Bug 31664: Display pending transfer information on details page 2022-11-02 19:18:01 -03:00
cataloguing Bug 31873: Check ->find before calling ->safe_delete 2022-11-03 10:02:55 -03:00
circ Bug 29792: Automatically send wrong transfers 2022-11-03 09:48:57 -03:00
clubs
course_reserves
errors
ill Bug 22321: Allow managing the borrowernumber tied to ILL request 2022-10-24 17:33:16 -03:00
installer
labels Bug 31882: Correct titles for pages in new cataloging module 2022-10-24 15:40:40 -03:00
mana
members Bug 31422: (QA follow-up) Fix terminology and switch icon 2022-11-03 09:45:31 -03:00
offline_circ
onboarding
patron_lists
patroncards
plugins
pos
recalls
reports
reserve Bug 31905: Fix button spacing on holds page 2022-10-27 09:35:10 -03:00
reviews
rotating_collections Bug 31911: (follow-up) Rename second level heading 2022-10-24 17:05:56 -03:00
serials
services
suggestion Bug 32038: Sidebar and footer style improvements on suggestions page 2022-11-02 19:20:29 -03:00
tags
test
tools Bug 32050: Add 'page-section' to calendar page 2022-11-02 19:22:36 -03:00
virtualshelves Bug 7960: Add class to item type descriptions so they can be hidden with CSS 2022-10-24 17:27:50 -03:00
about.tt
auth.tt Bug 30588: Add selenium tests 2022-10-21 11:36:58 -03:00
intranet-main.tt Bug 32035: Add "Koha" to the staff interface home page 2022-11-02 19:17:04 -03:00