From b3f26246eb2bbe671370841de9465837fac7d10a 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 fe3b81aa6d..612f272d90 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -134,6 +134,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.11.0