]> git.koha-community.org Git - koha.git/commit
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)
committerJared Camins-Esakov <jcamins@cpbibliography.com>
Sat, 9 Jun 2012 20:30:42 +0000 (16:30 -0400)
commit275b6e17e86ad2eaab7d2be53d718bcb832eb3f0
tree55a2a07b1e64f859c9a05dbc838fdcf483f82c92
parentb1020de57423b2bc6104a090a8ddcb3af9352e5e
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>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
admin/marc_subfields_structure.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/marc_subfields_structure.tt