]> git.koha-community.org Git - koha.git/commit
Bug 38329: Remove orphan confirm_deletion() in supplier.tt
authorPhil Ringnalda <phil@chetcolibrary.org>
Fri, 1 Nov 2024 19:33:32 +0000 (12:33 -0700)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 7 Nov 2024 17:49:39 +0000 (18:49 +0100)
commitc70946a0bef61297a0d31893d47a0fe7c98c39ce
tree97f9fc022f5c57d5d088108c8675b4a4ca8f13b6
parent099598d067e0668f2ce8df0f48bd03590dbd57c5
Bug 38329: Remove orphan confirm_deletion() in supplier.tt

The JavaScript function confirm_deletion() in supplier.tt has either
been an unused orphan since bug 28082 two years ago, or since the switch
from YUI to Bootstrap 12 years ago. Doesn't matter which, nothing calls
it, and if it was called, it would fail by trying to GET with
op="delete" rather than POST with op="cud-delete".

Test plan:
 1. Acquisitions - New vendor, enter a name and Save
 2. Click the name of your new vendor, so your URL is at supplier.pl
 3. Click Delete vendor to verify that deleting still works without this
    unused code which would fail

Sponsored-by: Chetco Community Public Library
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/acqui/supplier.tt