Bug 36612: Add public_read_list to Koha::Ticket
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 16 Apr 2024 17:22:41 +0000 (18:22 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 22 May 2024 12:55:51 +0000 (14:55 +0200)
commitd6cf0250a907def14c55f9582ee170b5fa47ee51
treeda365b177fc6aed95a5c20644d07b17f4ff18c7b
parenta4ca7a68d38c5a58c2eb6b3971fb700dacd08cea
Bug 36612: Add public_read_list to Koha::Ticket

Without the public_read_list to define which fields should be accessible
from the public endpoints we will always return a 500 from the API on
otherwise successfull additions of tickets via the OPAC.

Test plan
1) Enable OPACCatalogConcerns
2) Login to the OPAC and "Report a concern"
3) Note the error message in the UI "There was an error when submitting
   your concern, please contact a librarian."
4) Confirm that the concern is actually created regardless
5) Apply the patch here and restart plack
6) Submit another 'Report a concern' and now note the success message
   "Your concern was successfully submitted."

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 834fc10650779c71b6608ab01ef0e54bd9dd4746)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Ticket.pm