From aba3c6aafbec813b1e39bd0fd0da0f4198770ab9 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Fri, 19 Aug 2022 16:18:44 +0000 Subject: [PATCH] Bug 31374: Update Suggestion.pm To test: 1. Apply patch and restart services 2. Go to Acquistions -> Suggestions -> New Purchase suggestion 3. Notice the new 'Non-public notes:' textarea 4. Make sure you 'Set a patron' so we can later look at the suggestion from the OPAC 5. Make a new suggestion and make sure you add some Non-public notes 6. Back on the 'Suggestions management' page you should see a new column for 'Non-public note' 7. Go to table settings and make sure you can properly hide the column 8. Change the status and make sure it shows up on the table with all statuses (pending, accepted, rejected, etc ) 9. Check the API by going to (/api/v1/suggestions). Your suggestion should show up and 'privatenote' should include your non-public note. 10. Log in to the OPAC as the patron we set the suggestion to earlier. You should not see anything related to the non-public note displaying from the OPAC Signed-off-by: David Nind Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- Koha/Suggestion.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Suggestion.pm b/Koha/Suggestion.pm index 433fe7f1f1..f66f9f9209 100644 --- a/Koha/Suggestion.pm +++ b/Koha/Suggestion.pm @@ -160,6 +160,7 @@ sub to_api_mapping { lastmodificationby => 'last_status_change_by', STATUS => 'status', note => 'note', + privatenote => 'privatenote', author => 'author', title => 'title', copyrightdate => 'copyright_date', -- 2.39.5