]> git.koha-community.org Git - koha.git/commit
Bug 37152: Can't delete an Acquisitions contract
authorPhil Ringnalda <phil@chetcolibrary.org>
Fri, 21 Jun 2024 18:38:10 +0000 (11:38 -0700)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 18 Jul 2024 19:52:37 +0000 (19:52 +0000)
commit0f86951b3c25d387f2339ba1b5d1355f482b6686
tree10d7cab9127cf2cfdace9b796049f1d069bcaf82
parent58e831ce6329e4b2f64ef0890f4da2ffe3108ed7
Bug 37152: Can't delete an Acquisitions contract

admin/aqcontract.pl expects the op cud-delete-confirm, but what's sent is
the op delete-confirm because it's just a GET of the page that will actually
do a cud op once it is confirmed.

Test plan:
1. Without the patch, Acquisitions - Vendor search for My Vendor
2. Left Sidebar menu - Contracts - Add a contract
3. Fill in Name, Start date, End date, Save
4. On the line for the contract, click Delete
5. Note that the page that loads has no button for "Yes, delete contract"
   (or for anything else)
6. Apply patch, restart_all
7. Acquisitions - Vendor search for My Vendor
8. Left Sidebar menu, Contracts, click Delete, then Yes, delete contract
9. Vendor search for My Vendor, Left Sidebar Contracts, verify the contract
   is gone

Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 2fe6305bd7e6886d4003947bdebad2544de15f59)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
admin/aqcontract.pl