Koha/koha-tmpl/intranet-tmpl/prog/en/modules/tools
Fridolin Somers adb232c8f0
Bug 18710: Wrong subfield modified in batch item modification
In Tools > Batch item modification, one can modify or delete a subfield.
When deleting a subfield et modifying another, the wrong subfield gets modified.

This is caused by the fact that disabled inputs are not posted in form.
So for a subfield to delete :
Input name=field_value is not posted. But input name=subfield is posted with subfield code.
So these 2 arrays does not have the same size :
    my @subfields = $input->multi_param('subfield');
    my @values    = $input->multi_param('field_value');

For exemple, deleting $2, not changing $u and modidying $v will modify $u with value for $v o_O

This patch correts but setting disabled all inputs of a deleted subfield : field_value, tag, subfield and mandatory. Like it was not present in the form.

Test plan :
- Go to Tools > Batch item modification
- Enter a barcode and submit
- Lets say there are subfields : $2 (not mandatory), $u and $v
- Check the subfield $2 to be deleted
=> $2 input is disabled
- Enter a text in $v
- Submit the form
=> Without patch, the text for $v gets into $u
=> With patch, the text for $v gets into $v
- Check the subfield $2 is well deleted

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
2019-09-27 14:00:35 +01:00
..
access_files.tt
automatic_item_modification_by_age.tt
batch_delete_records.tt Bug 11529: Add templates for biblio title display. Unify display. 2019-08-05 15:03:19 +01:00
batch_record_modification.tt Bug 23196: (follow-up) Add comments to highlight structure 2019-06-28 14:38:19 +01:00
batchMod-del.tt Bug 22914: Add holds column to batch item delete to fix show/hide columns behaviour 2019-05-30 10:15:19 +00:00
batchMod-edit.tt Bug 18710: Wrong subfield modified in batch item modification 2019-09-27 14:00:35 +01:00
batchMod.tt
cleanborrowers.tt Bug 11642: (follow-up) Improve Batch patron deletion and anonymization GUI to make consequences clearer 2019-07-15 12:43:03 +01:00
csv-profiles.tt
export.tt
holidays.tt Bug 22272: Calendar: When entering date ranges grey out dates in the past from the start date 2019-08-13 11:53:25 +01:00
import_borrowers.tt Bug 23385: (follow-up) Update link 2019-08-13 11:44:04 +01:00
inventory.tt
koha-news.tt Bug 23279: In news management interface, sort news by publication date descending 2019-07-19 14:03:39 +01:00
letter.tt Bug 23512: (follow-up) Markup comments and corrections 2019-09-09 11:29:11 +01:00
manage-marc-import.tt Bug 23094: Use Bootstrap-style pagination on staged MARC records page 2019-07-15 11:28:06 +01:00
marc_modification_templates.tt Bug 15814: Add missing filters 2019-06-21 13:07:40 +01:00
modborrowers.tt Bug 13552: (follow-up) Add debar option to batch patron modification 2019-08-13 11:49:43 +01:00
overduerules.tt
picture-upload.tt
preview_letter.tt
quotes-upload.tt
quotes.tt
scheduler.tt
showdiffmarc.tt
stage-marc-import.tt
stockrotation.tt Bug 22209: Move stock rotation stage and item forms into modals 2019-08-08 16:05:50 +01:00
tools-home.tt Bug 11642: change / to and in related tools menu 2019-07-15 12:43:12 +01:00
upload-images.tt
upload.tt Bug 23013: Upgrade DataTables in the staff client 2019-08-22 15:23:19 +01:00
viewlog.tt