]> git.koha-community.org Git - koha.git/commit
Bug 18707: Background jobs post disabled inputs
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 31 May 2017 14:24:51 +0000 (16:24 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Jul 2019 10:27:59 +0000 (11:27 +0100)
commite269d6e6e6c9d1e3e11ae43a7773f3026f4d801a
tree340b7b6b6d7f470731b4e098edd50b46500af750
parentfd5686b156ceb10958cab728b7695aa2b39b9933
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>
koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js