From 0b17db1a2cde9d2e217e4ea0806e92ac7affd88d Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 17 Jun 2016 11:33:41 -0400 Subject: [PATCH] [SIGNED-OFF]Bug 16762: Record matching rules: Remove match check link removes too much My patch for Bug 5006 introduced a lot of markup changes to the record matching rules template. I missed a change in one are though, which caused a bug with the way the 'Remove match check' link works. To reproduce: - Go to Administration -> Record matching rules. - Edit a matching rule which includes at least one match check. - Click a 'Remove match check' link. The entire "Required match checks" block is removed. To test, apply the patch and repeat the steps above. Clicking any 'Remove match check' link should remove only the corresponding rule. Signed-off-by: Hector Castro Works as advertised --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt index e8aecf1..acb33a7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt @@ -364,7 +364,8 @@ function CheckRuleForm(f) { [% ELSE %][% END %] [% IF ( edit_matching_rule ) %] [% FOREACH matchcheck IN matchchecks %] -
+
+
Match check [% matchcheck.mc_num %]Add match check | Remove this match check [% FOREACH src_component IN matchcheck.src_components %] @@ -456,6 +457,8 @@ function CheckRuleForm(f) {
[% END %]
+
+ [% END %] [% ELSE %]
-- 1.7.10.4