]> git.koha-community.org Git - koha.git/commit
Bug 36081: Check SupportedFormats server side
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Tue, 13 Feb 2024 13:32:06 +0000 (13:32 +0000)
committerJesseM <jesse@bywatersolutions.com>
Tue, 25 Feb 2025 20:40:53 +0000 (20:40 +0000)
commit177ce2f4bd93997ec67c58667d9dabca48ed50da
tree8dbf2a88ad7d0c39d1965fadf22918370d3ba038
parent6d386a490ea8a405821053622094cc8aaa52497c
Bug 36081: Check SupportedFormats server side

Test plan:
Add article request with format via OPAC.
Run t/db_dependent/Koha/ArticleRequest.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Magnus Enger <magnus@libriotech.no>
Tests in t/db_dependent/Koha/ArticleRequest.t pass. I can add an
article request with a type. If I allow PHOTOCOPY but change the
HTML in the OPAC form so SCAN is submitted I get a nice (but
somewhat generic) error.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/ArticleRequest.pm
Koha/Exceptions/ArticleRequest.pm
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt
t/db_dependent/Koha/ArticleRequest.t