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)
committerJesse Weaver <jweaver@bywatersolutions.com>
Thu, 21 Jan 2016 00:16:42 +0000 (17:16 -0700)
commit2505a3d840c15e51c7967a576d53a416b5f92bfb
treeba133aa5be3e198fe6c0e76220d2545d9d7da564
parent9f4d87373abb8517e39c51cdde8fa17104196fea
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>
tools/modborrowers.pl