From 52e2fed230d2f4464ff38583f8d61989766d9584 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Fri, 22 Jan 2021 20:16:49 +0000 Subject: [PATCH] Bug 27003: [20.05.x] Fix test failure Signed-off-by: Andrew Fuerste-Henry --- Koha/Item.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Koha/Item.pm b/Koha/Item.pm index 6e2aa1e728..25396ba908 100644 --- a/Koha/Item.pm +++ b/Koha/Item.pm @@ -164,8 +164,6 @@ sub store { $self->permanent_location( $self->location ); } - $self->_after_item_action_hooks({ action => 'modify' }); - } unless ( $self->dateaccessioned ) { @@ -181,7 +179,7 @@ sub store { my $indexer = Koha::SearchEngine::Indexer->new({ index => $Koha::SearchEngine::BIBLIOS_INDEX }); $indexer->index_records( $self->biblionumber, "specialUpdate", "biblioserver" ) unless $params->{skip_record_index}; - + $self->get_from_storage->_after_item_action_hooks({ action => $action }); return $result; } -- 2.39.5