From a3de3f19676104ea96039e524d1609ce16896355 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 14 Dec 2020 14:51:17 +0100 Subject: [PATCH] Bug 27230: Display OPAC description for OPAC_SUG The authorised values OPAC_SUG displayed at the OPAC show the staff description. Test plan: 1. Create an auth value in opac_sug, with different text for the description and OPAC description. 2. Go to the OPAC and open the purchase suggestion form. 3. Note in the Reason for purchase drop down, the descriptions appear, the text entered in the OPAC description field. Signed-off-by: Lucas Gass Signed-off-by: Victor Grousset/tuxayo Signed-off-by: Jonathan Druart (cherry picked from commit 7063f2c4763d7fec870a4c326837b8b64e64004f) Signed-off-by: Fridolin Somers (cherry picked from commit e650254cf4cb8750f21f13ec49964ac025dbe823) Signed-off-by: Andrew Fuerste-Henry --- opac/opac-suggestions.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opac/opac-suggestions.pl b/opac/opac-suggestions.pl index 22f6442c9b..06e70c731d 100755 --- a/opac/opac-suggestions.pl +++ b/opac/opac-suggestions.pl @@ -217,7 +217,7 @@ foreach my $suggestion(@$suggestions_loop) { } } -my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG"); +my $patron_reason_loop = GetAuthorisedValues("OPAC_SUG", "opac"); # Is the person allowed to choose their branch if ( C4::Context->preference("AllowPurchaseSuggestionBranchChoice") ) { -- 2.39.5