Bug 25020: Preserve time part when batch extending due dates
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 30 Mar 2020 14:11:51 +0000 (16:11 +0200)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 3 Apr 2020 13:29:00 +0000 (14:29 +0100)
commite065b86abd51f36340fa940ca211931e21689fad
treeadd38250cf18fc59af2ceceefff81e261767e7e9
parent9d6362145ff335cec81e64874021c8f7a4479f23
Bug 25020: Preserve time part when batch extending due dates

When selecting a new hard due date, we should keep the time part of the
original checkouts.

Test plan:
1 - Checkout an item specifying a date due
2 - Checkout an item without specifying a date due
3 - Use Tools->Batch extend due date
4 - Select a hard due date
5 - On the confirmation screen you should see that the time part has
been kept
6 - Confirm
7 - Make sure the correct values hava been inserted in DB
8 - Try now using the other option, give a number of days
9 - Repeat 4-7

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/batch_extend_due_dates.tt
tools/batch_extend_due_dates.pl