]> git.koha-community.org Git - koha.git/commit
Bug 34130: Make requested_date nullable in api definition
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 27 Jun 2023 13:23:08 +0000 (13:23 +0000)
committerPedro Amorim <pedro.amorim@ptfs-europe.com>
Tue, 18 Jul 2023 11:40:27 +0000 (11:40 +0000)
commitdc4aba6a46b4d14568dd48ce0fda548bb7013d7b
tree1eb9bb3bd9ce82f0c5ddebc1fa93ea47a7b9a651
parent3aa5d5ad5b77c25397ed5e0487c0438b65791444
Bug 34130: Make requested_date nullable in api definition

This patch allows the requested_date for an ILL request to be NULL to accomodate
older data

To test:
1 - Install the Koha 2 Koha ILL plugin:
    https://gitlab.com/koha-community/plugins/koha-plugin-ill-koha
2 - Enable the ILL  system preference
3 - Force an ILL request with minimal data from backend:
    INSERT INTO illrequests (borrowernumber,biblio_id,branchcode,backend,status) VALUES (5,3,'CPL','Koha','placed');
4 - View the ILL table
5 - Error:
    {"message":"Expected string - got null.","path":"\/body\/0\/requested_date"}
6 - Apply patch
7 - Table loads successfully

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a8633a58129bc2bb6b26986973501aa6649f2c78)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 5edd76121ba4804599e3f3b29c0a223b2a9087d8)
Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
api/v1/swagger/definitions/ill_request.yaml