https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26992
Jonathan Druart <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] | |ommunity.org --- Comment #5 from Jonathan Druart <[email protected]> --- Why not using find? for my $itemnumber (@itemnumbers) { my $items = Koha::Items->search({ itemnumber => $itemnumber }); while ( my $item = $items->next ) { my $deleted_item = eval { $item->safe_delete }; vs for my $itemnumber (@itemnumbers) { my $item = Koha::Items->find( $itemnumber ); my $deleted_item = eval { $item->safe_delete }; or, even my $items = Koha::Items->search({ itemnumber => \@itemnumbers }); while ( my $item = $items->next ) { my $deleted_item = eval { $item->safe_delete }; -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
