Bug 12178: Update serial status to "claimed" when exporting to CSV
commitd4b8efca308423c9abfc3a55b22df51f46396435
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 28 Apr 2015 15:00:44 +0000 (28 17:00 +0200)
committerFrédéric Demians <f.demians@tamil.fr>
Mon, 1 Aug 2016 09:49:39 +0000 (1 11:49 +0200)
treef249ebefb2fbd5204375e58bee7810bee8afac95
parent5417592fd3c4e90e3bf9d30a2dc82c9fcdab71e4
Bug 12178: Update serial status to "claimed" when exporting to CSV

On the same way as late issues, the serial status should be updated to
'claimed' when the issues as exported as csv.

QA note: The updateClaim and UpdateClaimdateIssues subroutine did almost the
same thing, I kick the second on off to centralize the code.

Test plan:
1/ Export some late issues as CSV (serials/claims.pl).
2/ Refresh the page (the export does not do it) and confirm that the
status, the claim date and the claim count have been updated.
3/ Select some others issues, select a notice and send the notification.
Confirm that the behavior is the same.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b416ac16b5c67d902444041882c31a99e0525fa0)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
C4/Serials.pm
serials/claims.pl
t/db_dependent/Serials.t
t/db_dependent/Serials/Claims.t