]> git.koha-community.org Git - koha.git/commit
Bug 30023: Make MarkIssueReturned use ->anonymize
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 4 Feb 2022 11:47:05 +0000 (08:47 -0300)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 2 Mar 2022 08:47:47 +0000 (22:47 -1000)
commit42181dfce7bec6983092ca76365211e06a42ad8c
tree7ec057e5cf7cc359fef9159476329f0f5f5ed6e5
parentbafd1c25e9891ea3bc019fcad2c5d2191b9aa935
Bug 30023: Make MarkIssueReturned use ->anonymize

Koha::Old::Checkout->anonymize takes care of checking the syspref and
raises an exception if not set. So no we can now leverage on it, instead
of checking manually and then tweaking the checkout object manually as
well.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Circulation/MarkIssueReturned.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
C4/Circulation.pm
t/db_dependent/Circulation/MarkIssueReturned.t