]> git.koha-community.org Git - koha.git/commit
Bug 14697: Make controller methods rely on the stashed user
authorTomas Cohen Arazi <tomascohen@theke.io>
Tue, 29 Oct 2019 13:27:18 +0000 (10:27 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 31 Oct 2019 12:05:03 +0000 (12:05 +0000)
commit9dbf0ff0e0ea968fa408fc6e12bfbc943ceb9f26
tree17d6fce769b8bd6b3c192435ea5b1a4008f8c7fc
parent40e841da984f0aeb13a4632ce83a638cee47a434
Bug 14697: Make controller methods rely on the stashed user

This patch adjusts the return values and HTTP status codes, as well as
removing the use of C4::Context->userenv. It also makes the date
calculation happen on the DB engine in the case of resolving the claim.

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Lisette Scheer <lisetteslatah@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/REST/V1/ReturnClaims.pm
api/v1/swagger/paths/return_claims.json
t/db_dependent/api/v1/return_claims.t