From 6bb400bb9a2d55568753080dfeafd62b17dc0ed0 Mon Sep 17 00:00:00 2001 From: Baptiste Wojtkowski Date: Wed, 4 Mar 2026 16:31:17 +0000 Subject: [PATCH] Bug 41997: Submit properly default suggester in suggestion.tt Steps to reproduce, only on main. 1 - Open a form creation suggestion. 2 - With code explorer, notice that there is: in the code 3 - Apply patch 4 - With code explorer, notice that there is: in the code 5 - Submit form, notice the suggester is properly written Signed-off-by: Felicie Signed-off-by: Jonathan Druart Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt index 30bdbeea97..435b4ef311 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -538,17 +538,20 @@ [% INCLUDE 'date-format.inc' %] - [% IF ( suggestion.suggester.borrowernumber ) %] + [% suggestion.suggester.surname | html %], [% suggestion.suggester.firstname | html %] ([% suggestion.suggester.cardnumber | html %]) [% Branches.GetName( suggestion.suggester.branchcode ) | html %] ([% suggestion.suggester.category.description | html %]) [% ELSIF ( default_suggester ) %] + [% default_suggester.surname | html %], [% default_suggester.firstname | html %] ([% default_suggester.cardnumber | html %]) [% Branches.GetName( default_suggester.branchcode ) | html %] ([% default_suggester.category.description | html %]) + [% ELSE %] + [% END %]