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 <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-06-24 15:39:07 +01:00 committed by Tomas Cohen Arazi
parent 3684a53dc3
commit 1f5fbcf736
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

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