From 898adc6ff6ef8e6c16e279508a9d073d2547084b 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 --- Koha/Item.pm | 4 ---- 1 file changed, 4 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index d70fbc3f8f..bdd395420d 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -196,10 +196,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