]> git.koha-community.org Git - koha.git/commit
Bug 38495: Use JS to submit form to cancel background jobs
authorNick Clemens <nick@bywatersolutions.com>
Wed, 20 Nov 2024 13:24:12 +0000 (13:24 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 5 Dec 2024 23:17:57 +0000 (23:17 +0000)
commitb6e238909d0cccde59c40892c2a8956f222ab639
treefba4b526ec591f33f12d0c7b22576f0a36afb5e1
parente3f16499be3f3043dbb7c76477abfd7d448c1c24
Bug 38495: Use JS to submit form to cancel background jobs

This patch adjusts the link to cancel jobs to be submitted as a POST with cud-cancel operation

To test:
1 - Stop your long tasks bacground jobs worker
   sudo koha-worker --stop --queue long_tasks kohadev
2 - Stage a file for import
3 - Administration -> Manage jobs
4 - See your new job
5 - Click 'cancel'
6 - It didn't work
7 - Apply patch
8 - Browse to jobs again
9 - Click 'Cancel'
10 - Job is successfully cancelled

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit d047776630152a9e2b16c7797aaac600c0dff6e2)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/admin/background_jobs.tt