]> git.koha-community.org Git - koha.git/commit
Bug 15607: batch patron mod - do not update dates if not given
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 20 Jan 2016 08:45:48 +0000 (08:45 +0000)
committerFrédéric Demians <f.demians@tamil.fr>
Mon, 25 Jan 2016 15:37:24 +0000 (16:37 +0100)
commitca8194acf9fea09b38410a10c349f141c1a6d1c5
tree48f2ef8b5eff4095c4eabe1220e1dc89ff4b1128
parentf0e68b75ce68925333fac13bfe3fb6df7121d7b2
Bug 15607: batch patron mod - do not update dates if not given

Bug 15332 fixed a bug but introduced a bigger one. Even if dateenrolled and
dateexpiry are not modified, they will be updated to today.
Indeed, dt_from_string returns today without parameters.

Test plan:
- Set dateenrolled and expirydate for a patron
- Using the batch patron mod tool, update any field but dateenrolled and
expirydate.
=> Without this patch, the 2 date fields should be set to today
=> With this patch applied, the 2 date fields should not have been
modified.

Signed-off-by: Karam Qubsi <karamqubsi@gmail.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jesse Weaver <jweaver@bywatersolutions.com>
(cherry picked from commit 2505a3d840c15e51c7967a576d53a416b5f92bfb)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
(cherry picked from commit f0c36157ef13ad7a8f4238128cb145d94b9c9504)
Signed-off-by: Frédéric Demians <f.demians@tamil.fr>
tools/modborrowers.pl