From d27639707fd20b9c4dabcee42077c85db99d4cad Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 23 Mar 2026 12:26:13 -0400 Subject: [PATCH] Bug 42154: Bug 38714 hid the "New match check" link in record matching rules This patch corrects the logic used to determine whether to show the "New match check" link. I mistakenly changed it to check for the matchpoints variable instead of the matchchecks variable. To test, apply the patch and go to Administration -> Record matching rules. - Click "New record matching rule" in the toolbar. - Scroll down to the "Required match checks" section. - You should see a "New match check" link alongside a "Remove this match check" link. - Go back to the record matching rules main page. - If necessary, create a rule which doesn't have any match checks. - In the "Required match checks" section of the edit form you should see a "New match check" link, previously hidden by Bug 388714. Sponsored-by: Athens County Public Libraries Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Lucas Gass --- koha-tmpl/intranet-tmpl/prog/en/modules/admin/matching-rules.tt | 2 +- 1 file changed, 1 insertion(+), 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 0eb1c5f6c9..fbb89df0cf 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 @@ -327,7 +327,7 @@

Required match checks

[% IF ( edit_matching_rule ) %] - [% SET p_style = matchpoints ? 'display:none;' : 'display:block;' %] + [% SET p_style = matchchecks ? 'display:none;' : 'display:block;' %]

New match check