[Koha-bugs] [Bug 26992] On serial collection page, impossible to delete issues and related items

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Nov 17 11:04:03 CET 2020


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=26992

--- Comment #11 from Frédéric Demians <frederic at tamil.fr> ---
> Then I'm also wondering why there needs to be eval here:

> > my $deleted_item = eval { $item->safe_delete };

I copy-paste this from somewhere, I don't recall where... It seems from the
Koha::Item module, and usage from other scripts, that the canonical form
should be now:

my $error = $item->safe_delete;
if ($error eq 1) { # not deleted

I will re-factorize the patch appropriately. Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list