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 <katrin.fischer@bsz-bw.de>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit cb4db13612)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9feb62a703)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
This commit is contained in:
Lucas Gass 2023-08-11 20:53:44 +00:00 committed by Matt Blenkinsop
parent ca1efafa62
commit 4a794ad0ea
1 changed files with 1 additions and 1 deletions

View File

@ -451,7 +451,7 @@
<td>
[% IF suggestion.suggestedby %]
<span class="tdlabel">Suggested for:</span>
[% Branches.GetName(suggestion.suggester.branchcode) | html %]
[% Branches.GetName(suggestion.branchcode) | html %]
[% END %]
</td>
[% END %]