From 71a5a73f9048040800e1d11c3f4ed3bf10cc6439 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 29 Apr 2020 12:19:46 +0200 Subject: [PATCH] Bug 23070: Pass no_triggers => 1 to Koha::Objects->update To make sure we will update all the objects in one go (and no trigger the ->set->store from Koha::Object->update) --- C4/Reserves.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Reserves.pm b/C4/Reserves.pm index 358ba133c5..38db7d6e0e 100644 --- a/C4/Reserves.pm +++ b/C4/Reserves.pm @@ -1994,7 +1994,7 @@ sub RevertWaitingStatus { ## Increment the priority of all other non-waiting ## reserves for this bib record my $holds = Koha::Holds->search({ biblionumber => $hold->biblionumber, priority => { '>' => 0 } }) - ->update({ priority => \'priority + 1' }); + ->update({ priority => \'priority + 1', no_triggers => 1 }); ## Fix up the currently waiting reserve $hold->set( -- 2.20.1