Bug 28272: (QA follow-up) Add 'manager' to cashups definition
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 19 May 2021 15:43:47 +0000 (16:43 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 20 May 2021 06:41:48 +0000 (08:41 +0200)
commit300210e8c372c90d1851bff156da7ece5eda5bb9
tree2f2b9fc56b491818c6ed462ccd6f76c144601dd7
parent3faeb901263609aa2a015f446944ef79cbe396c9
Bug 28272: (QA follow-up) Add 'manager' to cashups definition

The embeddable 'manager' relation field was missing from the
specification file and as such calls using this embed would result in a
500 error since we introduced 'additionalProperties: false'.

Test plan
1/ Enable 'UseCashRegisters'
2/ Navigate to the register details page
3/ Inspect the network traffic and note a 500 error on the cashups api
call
4/ Apply the patch
5/ The 500 should have gone away and been replaced with an empty
resultset 200 page.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
api/v1/swagger/definitions/cashup.json