]> git.koha-community.org Git - koha.git/commit
Bug 21337: Add Koha::Patrons->delete (trivial wrapper)
authorMarcel de Rooy <m.de.rooy@rijksmuseum.nl>
Wed, 12 Sep 2018 13:49:45 +0000 (15:49 +0200)
committerNick Clemens <nick@bywatersolutions.com>
Mon, 15 Oct 2018 14:12:54 +0000 (14:12 +0000)
commite652f47cedfdf069b054b4f623ec5674640555ec
tree3f126b6930c0a467d08fd3281f96eea7726f2e02
parentcea8a72708e68b82eeeaaec2d985ec0a69dd4a11
Bug 21337: Add Koha::Patrons->delete (trivial wrapper)

Adds Koha::Patrons->delete as wrapper around Koha::Patron->delete. We do
not want to bypass Koha::Patron and let DBIx do the job without further
housekeeping. A call to move_to_deleted is included now, but could be
made optional with a parameter if needed.

Test plan:
Run t/db_dependent/Koha/Patrons.t

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Michal Denar <black23@gmail.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Koha/Patrons.pm
t/db_dependent/Koha/Patrons.t