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 <tomascohen@theke.io>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Jonathan Druart 2019-08-07 20:47:20 -05:00 committed by Martin Renvoize
parent eeaf0b19e0
commit bef6c36156
Signed by: martin.renvoize
GPG key ID: 422B469130441A0F

View file

@ -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'