[Koha-bugs] [Bug 29765] Make Koha::Patron->safe_to_delete return a Koha::Result::Boolean object
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Jan 4 16:20:55 CET 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29765
Jonathan Druart <jonathan.druart+koha at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #128929|0 |1
is obsolete| |
--- Comment #9 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
Created attachment 129000
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=129000&action=edit
Bug 29765: Adjust DELETE /patrons/:patron_id controller
This patch adjusts the only current place using the
Koha::Patron->safe_to_delete method to the new return value. There
should be no behavior change
To test:
1. Apply the previous patches
2. Run:
$ kshell
k$ prove t/db_dependent/api/v1/patrons.t
=> FAIL: Tests fail, because of the change, the controller is broken
3. Apply this patch
4. Repeat 2
=> SUCCESS: Tests pass! No test tweak required, no behavior change
5. Sign off :-D
Signed-off-by: David Nind <david at davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart at bugs.koha-community.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list