From f22db386b26de42d7c34606d22e8c9ad409caa7e Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 7 Aug 2019 20:47:20 -0500 Subject: [PATCH] Bug 23463: Fix AutomaticItemModificationByAge.t We do not want to log if nothing changed How could we do that better? --- Koha/Item.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Item.pm b/Koha/Item.pm index 0ffc2a18ae..c66b04fbf0 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -136,6 +136,7 @@ sub store { } my %updated_columns = $self->_result->get_dirty_columns; + return $self->SUPER::store unless %updated_columns; if ( defined $self->location and $self->location ne 'CART' and $self->location ne 'PROC' -- 2.25.0