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

--- Comment #11 from Frédéric Demians <[email protected]> ---
> 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.
_______________________________________________
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/

Reply via email to