Bug 22440: Add Koha::Illrequests->filter_by_visible
authorTomas Cohen Arazi <tomascohen@theke.io>
Fri, 6 Jan 2023 15:48:39 +0000 (12:48 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 5 May 2023 12:13:40 +0000 (09:13 -0300)
commit1a186826e46212ed7a2acbf9e63e0b6eb8e6cc79
tree194642d24260a9e71fb18b43022a9b3da1497949
parentf214582bddeaaa5eb6d692e98408751370fb71bc
Bug 22440: Add Koha::Illrequests->filter_by_visible

This patch introduces a method for filtering out requests that match the
statuses specified on the *ILLHiddenRequestStatuses* system preference.

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

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/Illrequests.pm
Koha/REST/V1/Illrequests.pm
t/db_dependent/Koha/Illrequests.t [new file with mode: 0755]