From ab47653b4fee010c83cb34760be25c0ab610b44d 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 --- .../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 ad235d56fac..8affb43e396 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -548,17 +548,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 %] -- 2.43.0