https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32528 Tomás Cohen Arazi <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart+koha@gmail. | |com, | |martin.renvoize@ptfs-europe | |.com, | |nick@bywatersolutions.com, | |tomascohen@gmail.com Summary|Enhance |Koha::Item->safe_to_delete |Koha::Item->safe_to_delete |should short-circuit | |earlier Status|NEW |Needs Signoff Assignee|koha-bugs@lists.koha-commun |tomascohen@gmail.com |ity.org | --- Comment #1 from Tomás Cohen Arazi <tomascohen@gmail.com> --- Koha::Item->safe_to_delete checks 5 conditions, most of which involve querying the DB. It should return right after one condition is met, but it keeps checking the rest of them. This can be particularyl painful on batch deletions. And is incorrect regardless. -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.