[Koha-bugs] [Bug 20763] AllowPurchaseSuggestionBranchChoice triggers error opac-suggestions.pl is visited without logging in
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri May 25 20:58:47 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20763
pierre-luc.lapointe at inLibro.com changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #75302|0 |1
is obsolete| |
--- Comment #2 from pierre-luc.lapointe at inLibro.com ---
Created attachment 75567
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=75567&action=edit
Bug 20763: AllowPurchaseSuggestionBranchChoice triggers error
opac-suggestions.pl is visited without logging in
Some code executed in the script opac-suggestions.pl if the system preference
AllowPurchaseSuggestionBranchChoice is enabled assumes there is a logged in
user. If there is not, patrons will see the error "Internal Server Error".
Test Plan:
1) Enable AllowPurchaseSuggestionBranchChoice
2) Enable AnonSuggestions
3) In the OPAC, perform a search that will have no results,
click the "Make a purchase suggestion" link.
4) Note the error
5) Apply this patch
6) Reload the page
7) The page should load now!
Signed-off-by: Pierre-Luc Lapointe <pierreluc.lapointe at inLibro.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list