From 071ce5aa26f362c017ced445320b9afcb1c8ee88 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Fri, 17 Jun 2016 11:33:41 -0400 Subject: [PATCH] Bug 16762: Record matching rules: Remove match check link removes too much MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Kyle M Hall Signed-off-by: Kyle M Hall (cherry picked from commit ffcb360321f6abe111c3352606b4c641ac48950a) Signed-off-by: Frédéric Demians --- .../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 e8aecf14b9..acb33a7638 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 %]
-- 2.39.5