]> 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)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 26 Feb 2025 12:46:32 +0000 (13:46 +0100)
commitea1fbf8e7bb883822d7e810bc21aa67e45a62a65
tree1b9305d7030a4e43eacd138f6496bec9018ffd5a
parent9d37421c0cd47e2fc002d6b01ff837ba7a97bb16
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>
Signed-off-by: Alex Buckley <alexbuckley@catalyst.net.nz>
(cherry picked from commit 3a817ca38070e9363d07480515a767318550f71a)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/ArticleRequest.pm
Koha/Exceptions/ArticleRequest.pm
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-request-article.tt
t/db_dependent/Koha/ArticleRequest.t