From 83d33da0d9be33e417bc69ccd98320000bcf38db Mon Sep 17 00:00:00 2001 From: Alex Arnaud Date: Fri, 19 Nov 2021 09:59:59 +0100 Subject: [PATCH] Bug 29393: Don't show notice templates for each language --- Koha/Template/Plugin/NoticeTemplates.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Koha/Template/Plugin/NoticeTemplates.pm b/Koha/Template/Plugin/NoticeTemplates.pm index fe6ed61214..a1a1eaa7b2 100644 --- a/Koha/Template/Plugin/NoticeTemplates.pm +++ b/Koha/Template/Plugin/NoticeTemplates.pm @@ -27,7 +27,10 @@ use Koha::Notice::Templates; sub GetByModule { my ( $self, $module ) = @_; - return Koha::Notice::Templates->search({ module => $module }); + return Koha::Notice::Templates->search( + { module => $module }, + { group_by => 'code' } + ); } =head1 NAME -- 2.39.0