From f00db8c5cf4e6c063e462ed03577146ce56c942b 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? Signed-off-by: Tomas Cohen Arazi Signed-off-by: Nick Clemens --- Koha/Item.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/Koha/Item.pm b/Koha/Item.pm index 4304b8a58e..1d88df614c 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.20.1