[Koha-bugs] [Bug 21337] Add Koha::Patrons->delete (trivial wrapper)
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Oct 25 13:26:42 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21337
--- Comment #22 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
I was not precise enough.
I use "something went wrong" for both cases: the row cannot be deleted because
of an error (FK for instance), or the row does not exist.
With:
$p1 and p1bis can be deleted
$p2 cannot be deleted and DBI will explode
$p3 does not exist (and so $p3->delete will return 0)
I would expect:
delete $p1 and $p1bis => ok, both are deleted
delete $p2 and ($p1 or $p3) => none are deleted, exception is raised
delete $p1 and $p3 => ok, $p1 is deleted
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list