From b170582325606f9e27c1092ab0d734240df12baa Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 1 Mar 2024 15:46:04 +0000 Subject: [PATCH] Bug 36187: Corrected set data.patron_id in select_suggestor() To test: 1. Make a new suggestion in the staff interface and attempt to set the "Created by" patron to someone other than the logged in user. 2. Submit the suggestion. 3. select suggestedby from suggestions where suggestionid = X; ( Where X is the suggestionid ) 4. The value is NULL 5. On suggestion/suggestion.pl the "Suggested by" column is blank. 6. APPLY PATCH 7. Try 1 - 3 again. This time the suggestedby should be correctly set. Signed-off-by: Andrew Fuerste Henry Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Katrin Fischer (cherry picked from commit 607b80c5a601f54920a2b3b259896ac4e490e0ab) Signed-off-by: Fridolin Somers --- .../intranet-tmpl/prog/en/modules/suggestion/suggestion.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 40d823dafb..ffa2363293 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt @@ -1307,8 +1307,8 @@ "x-koha-embed": "+strings" }, success: function (data) { - var suggested = ''; - suggested += ''; + var suggested = ''; + suggested += ''; suggested += data.surname + ', ' + data.firstname + ' (' + data.cardnumber + ')'; suggested += ' '; suggested += data._strings.library_id.str + ' (' + data._strings.category_id.str + ')'; -- 2.39.5