]> git.koha-community.org Git - koha.git/commit
Bug 18706 - subfields to delete not disabled anymore in batch item modification
authorFridolin Somers <fridolin.somers@biblibre.com>
Wed, 31 May 2017 14:02:44 +0000 (16:02 +0200)
committerKatrin Fischer <katrin.fischer.83@web.de>
Tue, 13 Jun 2017 06:03:26 +0000 (08:03 +0200)
commitf82009d10efcc8c8b7188dbe4728642eb0ba01ee
tree2379e3ca757f328d9ea0594ee2be95513344d703
parentb64e0dfdbcc1a944b23d9a6eacb2b86cf14ea60f
Bug 18706 - subfields to delete not disabled anymore in batch item modification

In Tools > Batch item modification, one can click a checkbox to delete a subfield.
This click use to disable the input to change the field value.

This comes from the patch : Bug 13501: Move "Required" and checkbox after input/select
Because input is found using JQuery next().

This patch replaces with $(this).parent().find("[name='field_value']").

Test plan :
- Go to Tools > Batch item modification
- Enter a barcode and submit
- Click on a checkbox on a non-mandatory subfield
=> Without patch the input or select is not disabled
=> With patch the input or select is disabled
- Submit
=> Check that subfield is deleted

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 7c9273be169ca4da47059aa152f8c6ea11137a52)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit dc1f51959ad1b7a5e7ca7e6259e0e42cc6260643)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod-edit.tt