From 47d3a08f6b5eeb2d740636435afad0c508d7ead1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 16 Nov 2021 11:55:08 +0100 Subject: [PATCH] Bug 29419: Retain user's inputs when suggesting for purchase and match found If a user suggests for purchase and a match is found, their inputs was not retained: quantity, item type, library, reason. Test plan: 1. Suggest for purchase 2. Fill the title in with a string that will match an existing record 3. Fill value in quantity, item type, library and reason input/dropdown 4. Submit => Notice that with this patch the values you entered are retained on the confirmation screen Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Fridolin Somers Signed-off-by: Kyle M Hall (cherry picked from commit d9fb75f210227d33545e580eca72f54399b5ab3e) Signed-off-by: Andrew Fuerste-Henry --- .../bootstrap/en/modules/opac-suggestions.tt | 24 ++++++++++++------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt index f29e671ccc..5a7ec2c2ed 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -161,11 +161,11 @@
  • [% IF ( quantity_required ) %] - + Required [% ELSE %] - + [% END %]
  • [% END %] @@ -173,11 +173,11 @@
  • [% IF ( itemtype_required ) %] - [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1 %] + [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, required = 1, blank = 1, default=itemtype %] Required [% ELSE %] - [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, blank = 1 %] + [% PROCESS 'av-build-dropbox.inc' name="itemtype", category="SUGGEST_FORMAT", size = 20, blank = 1, default=itemtype %] [% END %]
  • [% END %] @@ -186,13 +186,13 @@ [% IF ( branchcode_required ) %] Required [% ELSE %] [% END %] @@ -205,7 +205,11 @@ Required @@ -214,7 +218,11 @@ [% END %] -- 2.39.2