From 1e24be03e613fb1f23457f005496891853597921 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 (cherry picked from commit e0fcd54a6edd728ab67924d5ab3ef3df8d4e52dd) Signed-off-by: Arthur Suzuki (cherry picked from commit 898adc6ff6ef8e6c16e279508a9d073d2547084b) Signed-off-by: Victor Grousset/tuxayo --- Koha/Item.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 47a86eb0bb..145de6b2ef 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -195,10 +195,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