]> git.koha-community.org Git - koha.git/commit
Bug 8064: Fix issues with control fields and non-repeatable check
authorJulian Maurice <julian.maurice@biblibre.com>
Fri, 20 Dec 2013 10:01:09 +0000 (11:01 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Mon, 9 Nov 2015 18:08:57 +0000 (15:08 -0300)
commitf483414637efc6c44ea487b74b917a1ac7e88a84
treed54a5b0181a6d9db606527e7646a255b91539f7e
parent44c4b9310d651d17c5e2163b6723fc56ba8e0c46
Bug 8064: Fix issues with control fields and non-repeatable check

Fields < 010 were systematically unchecked during target rebuild because
they have no subfields (unchecking manually all subfields of a field
automatically uncheck the field)
When user check a field or a subfield, we have to uncheck it before
calling (sub)field_can_be_added. Otherwise, field is treated as if it
was already in target record, and this is a problem for non-repeatable
fields.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/js/merge-record.js