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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 3 May 2024 08:59:35 +0000 (10:59 +0200)
commit834fc10650779c71b6608ab01ef0e54bd9dd4746
tree929c3efd8422422f98bb8cb77d01e7cc4c46dd70
parentaf0422ccabb21521c8aff14a10a874f100ee1f0a
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>
Koha/Ticket.pm