From 9feb62a7031f8ee055c54023a3c8a7e3eafa078e Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 11 Aug 2023 20:53:44 +0000 Subject: [PATCH] Bug 34522: Pass the suggestion branchcode, not the suggester branchcode To test: 1. Turn on OPACViewOthersSuggestions 2. Log into OPAC as patron of Branch A 3. Make purchase suggestion for Branch B 4. Refresh /cgi-bin/koha/opac-suggestions.pl and see that suggestion appears to have been made for Branch A 5. View suggestion from staff client - See that it accurately reflects suggestion having been made for Branch B 6. Apply patch and try steps 2 - 5 again, this time you should see the proper branch. Signed-off-by: Katrin Fischer Signed-off-by: David Nind Signed-off-by: Tomas Cohen Arazi (cherry picked from commit cb4db13612da28c3a04114fbdb2c7005c13631ef) Signed-off-by: Fridolin Somers --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 71fd3b1b93..00bc8922e3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-suggestions.tt @@ -451,7 +451,7 @@ [% IF suggestion.suggestedby %] Suggested for: - [% Branches.GetName(suggestion.suggester.branchcode) | html %] + [% Branches.GetName(suggestion.branchcode) | html %] [% END %] [% END %] -- 2.39.5