From de5fcedbbaeb092f4dad878017cf873cdd22d63c 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 --- 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 fe6ed612143..a1a1eaa7b2b 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.44.0