]> git.koha-community.org Git - koha.git/commit
Bug 28445: Don't surround the whole batch with a transaction
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 11 Oct 2021 14:26:12 +0000 (16:26 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 18 Oct 2021 09:28:40 +0000 (11:28 +0200)
commitac90166f4596d0c06480809b733ae3c831007733
tree6fbd3b9ee8cdd20426b12cab0a99de4a44f496f1
parent8943451f855a3fd7a60ca9d2b7a0a47db4740678
Bug 28445: Don't surround the whole batch with a transaction

It makes more sense to commit when an item has successfully been modified and
so move the transaction inside the loop.

It also fixes the progress of the whole job.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/BackgroundJob/BatchUpdateItem.pm
Koha/Items.pm