Bug 3413: Checkboxes for new subfields not saving correctly
authorKatrin Fischer <Katrin.Fischer.83@web.de>
Mon, 9 Apr 2012 09:44:06 +0000 (11:44 +0200)
committerPaul Poulain <paul.poulain@biblibre.com>
Mon, 7 May 2012 20:23:49 +0000 (22:23 +0200)
commit22b6705b4f5d932e14aff910faba4229c72897ca
tree0e064f76a65ec1ef5e667911f5a1f24946a07378
parent1a44578e2b69731cee9345fa22cc448414b90657
Bug 3413: Checkboxes for new subfields not saving correctly

The bug was in the numbering of the fields and subfields in the form.
The form elements for the 'new subfield' got the same numbered names and ids as
the form elements for the second subfield. (example: repeatable1)
The patch fixes the numbering to continue to the new subfield.

To test:
- Create some new subfields and check all checkbox fields save correctly
  (mandatory, repeatable, is url)
- Check that other subfields' checkboxes are not changed
- Check existing subfields and newly created subfields can be edited

Signed-off-by: mveron <veron@veron.ch>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
admin/marc_subfields_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt