Bug 21596: (follow-up) Handle updated_on
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Thu, 25 Oct 2018 13:24:46 +0000 (10:24 -0300)
committerNick Clemens <nick@bywatersolutions.com>
Thu, 25 Oct 2018 15:18:32 +0000 (15:18 +0000)
commitd76fde9467d7bbe1270cf652a601d71de09b1d56
tree11e654e644a34d6099bea3af27352235c3aa3059
parent1ce984ea1dd12391d39507cd21c4d3813eab9754
Bug 21596: (follow-up) Handle updated_on

Default value should only used if not exist.
We got a failing test with the previous patch:
 #   Failed test 'borrowers.updated_on should have been kept to what we set on creating'
 #   at t/db_dependent/Patrons.t line 78.
 #          got: '1'
 #     expected: '0'

Test plan:
prove -r t/Auth_with_shibboleth.t t/db_dependent/Patrons.t t/db_dependent/Koha/Patron*

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Patron.pm