Bug 18707: Background jobs post disabled inputs
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 31 May 2017 14:24:51 +0000 (16:24 +0200)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 30 Jul 2019 07:35:08 +0000 (09:35 +0200)
commit8b9c96308fe063b28123e6081472788f88b9f4e8
tree37171b65fc7ceb9fe2c799255036b713c90fcdbd
parent1923fd376f778b9a7bbab65a7b92914522cbd3e9
Bug 18707: Background jobs post disabled inputs

For example, in Tools > Batch item modification input of deleted subfields are disabled.
This form is posted using background job via JS code.
Looks like this JS code converts a POST form into a GET URL, including inputs that are disabled :

koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js
function submitBackgroundJob(f) {
...
$(':input', f).each(function() {
...

This patch add a :enabled to selector

Test plan :
<to define>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit e269d6e6e6c9d1e3e11ae43a7773f3026f4d801a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js