From e0fcd54a6edd728ab67924d5ab3ef3df8d4e52dd Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 24 Jun 2022 15:39:07 +0100 Subject: [PATCH] Bug 29958: Do not set dateaccessioned on updates This patch reomves the second occurence of setting daeaccessioned today, outside of the 'add/update' handling in Koha::Item->store. Signed-off-by: David Nind Signed-off-by: Marcel de Rooy Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 1f5fbcf73626139bcc01aca73b912fa29ff51f7d) Signed-off-by: Lucas Gass --- Koha/Item.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 2cefac59be..09cb4ca814 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -198,10 +198,6 @@ sub store { } - unless ( $self->dateaccessioned ) { - $self->dateaccessioned($today); - } - my $result = $self->SUPER::store; if ( $log_action && C4::Context->preference("CataloguingLog") ) { $action eq 'create' -- 2.39.5