Bug 18399: Add reasons in edit suggestion page
authorAlex Arnaud <alex.arnaud@biblibre.com>
Wed, 4 Oct 2017 15:04:15 +0000 (15:04 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 11 Oct 2017 16:05:39 +0000 (13:05 -0300)
commit7b9140e8eff89fdad149023aa292f62462e07fae
tree22e72dbf564c41d7c4187164d2c6266d2f0c4886
parentf279be86040da34cbc6a3936d4b483a2e70a4377
Bug 18399: Add reasons in edit suggestion page

Test plan:

 - Fill the authorised values's category 'SUGGEST' with reason
 - Edit a pending suggestion. Set the status to rejected
   and select a reason
 - Check the reason has been saved (i.e in the suggestions
   table of rejected tab)
 - Check in the corresponding message_queue that the reason
   is here
 - Re-edit the same suggestion
 - Check that the correct reason is selected by defaut
 - Edit an other pending suggetion. Set the status to rejected,
   select other reason and fill the input text
 - Re-edit the previews suggestion and make sure the input
   "other" is displayed by default with the correct value

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/modules/suggestion/suggestion.tt
suggestion/suggestion.pl