]> git.koha-community.org Git - koha.git/commit
Bug 9565: (follow-up) Deleting a biblio should alert/fail if there are existent subsc...
authorMarion Durand <marion.durand@biblibre.com>
Thu, 21 Oct 2021 13:06:02 +0000 (15:06 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Sat, 11 Dec 2021 07:15:30 +0000 (21:15 -1000)
commita7771f0503e8913753a6b47c904797c2b59bdab4
treec2a8f63d40585cc8cef0e8e683f7550ea841c022
parent1dcc368df176e70503e694048384927d8e2397ab
Bug 9565: (follow-up) Deleting a biblio should alert/fail if there are existent subscriptions

Clicking on "Delete record" while there are existent subscriptions no
longer delete the record and the subscription. Instead an alert box
inform the user that he must delete all subscription before deleting the
record.

To test:
1) Add a subscription to a biblio, or check a biblio which has one
   attached already.
2) Remove all items if there are any.
3) Apply patch.
4) Confirm that the 'Delete record' item is disabled in the list.
5) Attempt to 'Delete record', you should recieve
   an error message stating to delete all subscriptions before
   deleting record.
6) Sign off.

Sponsored by: Lunds Universitetsbibliotek

Signed-off-by: Samu Heiskanen <samu.heiskanen@hypernova.fi>
Signed-off-by: Frank Hansen <frank.hansen@ub.lu.se>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/catalog-strings.inc
koha-tmpl/intranet-tmpl/prog/js/catalog.js