]> git.koha-community.org Git - koha.git/commit
Bug 28586: (follow-up) updated_by should be set
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 17 Jun 2021 19:02:35 +0000 (16:02 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 21 Jun 2021 08:09:58 +0000 (10:09 +0200)
commit639aa95a50c3900590b376e56f39272fcd7ea109
treea4851e3fa61a1c0f2dd161d32e1c3b2afa5bac99
parentaa8fc8c0ee283e08620a41abb96285ca81eec83a
Bug 28586: (follow-up) updated_by should be set

This patch makes the route set the 'updated_by' attribute as well, when
resolving a return claim through the API.

Tests are added for this behavior.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/api/v1/return_claims.t
=> SUCCESS: Tests pass! updated_by is set correctly!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/REST/V1/ReturnClaims.pm
t/db_dependent/api/v1/return_claims.t