]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 6 Aug 2019 04:40:27 +0000 (04:40 +0000)
commit182caed9c3746833cfef93170f06c855fed7753b
tree8a197592b263116eb9c8d38fce0f7a881a1e7adf
parent9963687308d14f7a035c499e97263bf8cf56b01e
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>
(cherry picked from commit 8b9c96308fe063b28123e6081472788f88b9f4e8)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/js/background-job-progressbar.js