]> git.koha-community.org Git - koha.git/commit
Bug 28248: aqorders.created_by is nullable
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 29 Apr 2021 18:37:49 +0000 (15:37 -0300)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Tue, 25 May 2021 13:30:04 +0000 (13:30 +0000)
commit644fd8dad4f441b75103188ccbea14d0144289e0
treedcc125891b5e52a2e1caa9c9e43c72f1bdbfe567
parentaa124f9c845104667ecb5cf7e6fc1becd4a39653
Bug 28248: aqorders.created_by is nullable

This patch introduces a change to the spec to acknowledge that the field
is nullable. This is fixed in 21.05+ as part of bug 20212.

To test:
1. Have an order with created_by = NULL
2. Use your favourite REST tool (Advanced REST Client(libre), Postman?) to fetch the order
=> FAIL: It throws a nasty error about non-nullable field being null
3. Apply this patch
4. Reload all
5. Repeat 2
=> SUCCESS: It returns things, created_by is NULL, as it should
6. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9ee7a37c331bc866728cfe7cf91c97c2fc33b24b)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
api/v1/swagger/definitions/order.json