From f6b5ed8ee91974f1394a1c1a010483595d17c08d 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 Signed-off-by: Matthias Le Gac Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- 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.5