]> 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>
Thu, 14 Jun 2012 11:44:16 +0000 (07:44 -0400)
commitf7df725de7d40e5e8f2fee5673f4bfa6175956d4
tree69b50931a8526ff5e0d35fbee670d344b98c788a
parent8e16d25f2be1c50469bf3e22b21281d81f41254f
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