From 19c11de30bd00ddb67f287a0bdf96630d7de6f69 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 Sponsored-by: Aix-Marseille University --- 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 fe6ed61..a1a1eaa 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.7.4