Bug 25130: Reason for accepting/rejecting a suggestion is not visible when viewing (not editing)

The patch adds the suggestion management reason to the display when
viewing a suggestion.

To test:

1) Edit a suggestion and assign a reason for accepting it.
2) View the suggestion (/cgi-bin/koha/suggestion/suggestion.pl?suggestionid=XX&op=show, replacing XX with your suggestion ID)
3) Under suggestion management, the reason you've just assigned does not
display.
4) Apply the patch
5) Check the display again - the Reason should now be visible directly
under the status.

Signed-off-by: Abbey Holt <aholt@dubuque.lib.ia.us>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
David Roberts 2020-05-04 19:43:32 +00:00 committed by Martin Renvoize
parent 0d4b8cf126
commit 0e0f09ba94
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -161,6 +161,12 @@
[% END %]
</li>
<li>
<span class="label">Reason:</span>
[% IF ( reason ) %]
[% AuthorisedValues.GetByCode( 'SUGGEST', reason, 0 ) | html %]
[% END %]
</li>
<li>
<table>
<thead><tr><th>&nbsp;</th><th>Date</th><th>By</th></tr></thead>