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)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 12 May 2023 07:16:28 +0000 (08:16 +0100)
commit57e73e3d00826bdc065467d548fbc62d0815826d
treeb86e99430af9b5d1073124d8af78aa7476c0bdd4
parent69820eefeb9922873fe362cf46d03a61a9a3d56e
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>
(cherry picked from commit 1a186826e46212ed7a2acbf9e63e0b6eb8e6cc79)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Illrequests.pm
Koha/REST/V1/Illrequests.pm
t/db_dependent/Koha/Illrequests.t [new file with mode: 0755]