]> git.koha-community.org Git - koha.git/commit
Bug 31921: Add confirmation modal when deleting a vendor
authorSam Lau <samalau@gmail.com>
Tue, 9 Jul 2024 15:20:57 +0000 (15:20 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 21 Aug 2024 17:13:57 +0000 (19:13 +0200)
commit81af57344d5efa19eae68acbf110df09b02dcfa2
tree23bc8180854c8a542b2401922224e23e4713b119
parent538c943faa52f1571814642ab5a05a48b689b083
Bug 31921: Add confirmation modal when deleting a vendor

This patch adds a new modal for confirming vendor deletion. It fixes
the previous functionality, showing a confirmation modal for each
vendor and appropriately handling the response.

To test:
1) Visit Acquisitions home. Under where it says 'Manage orders', click
   the search bar to bring up the list of vendors.
2) Add a few vendors by clicking 'New' and 'Vendor'. After this, go back
   to the vendor search so that all the vendors are showing.
3) For each vendor, click on 'Delete vendor' and ensure the modal shows
   properly.
4) Attempt to delete one of the vendors. Go back to the vendor search
   and ensure they are deleted correctly.
5) Click on a vendor's name to go their supplier page. Make sure modal
   works properly and attempt to delete a vendor from here.

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/includes/acquisitions-toolbar.inc
koha-tmpl/intranet-tmpl/prog/en/includes/modals/delete_vendor.inc [new file with mode: 0644]
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/booksellers.tt
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt
koha-tmpl/intranet-tmpl/prog/js/acq.js