From 78d34881703094d366a40635820b080de3621a55 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 29 Oct 2018 17:27:52 -0300 Subject: [PATCH] Bug 21596: (follow-up) Handle updated_on part 2 It seems that I have over complicated things here, now t/db_dependent/Koha/Object.t is failing Apparently everything is ok with this change. Test plan: prove -r prove -r t/db_dependent/Koha/Object.t t/Auth_with_shibboleth.t t/db_dependent/Patrons.t t/db_dependent/Koha/Patron* Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens https://bugs.koha-community.org/show_bug.cgi?id=14957 --- Koha/Patron.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/Patron.pm b/Koha/Patron.pm index c3ea18ff06..5831034bdc 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -200,10 +200,6 @@ sub store { if ( defined $self->updated_on and not $self->updated_on ) { $self->updated_on(undef); - } elsif ( not $self->updated_on ) { - # This is bad we should use columns_info instead - # But it will avoid unecessary processing - $self->updated_on(\"current_timestamp"); } # Set default values if not set -- 2.11.0