]> git.koha-community.org Git - koha.git/commit
Bug 28641: ILLHiddenRequestStatuses does not consider custom statuses
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Thu, 2 Feb 2023 17:55:10 +0000 (17:55 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Fri, 31 Mar 2023 10:28:14 +0000 (12:28 +0200)
commitaaa5bcd16bc5c4e50986961ad79d29801e67c889
tree5b28b0992d483eb88cbf90791111ac159ced14fd
parentb0a570796cac5aadee22bcaeb1ab321c9bfc38da
Bug 28641: ILLHiddenRequestStatuses does not consider custom statuses

This patch adds the status_alias column to the ILLHiddenRequestStatuses sys pref check.
Because requests will have status_alias NULL by default, we also check for that.

Test plan:
Create multiple ILL requests of different backends and place them in different status (NEW, COMP, REQ, etc)
Create multiple ILLSTATUS entries
Add and remove a mix of both status and status_alias codes in ILLHiddenRequestStatuses and refresh the ILL requests page to confirm the result is according to expectation.

Sponsored-by: PTFS Europe
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/REST/V1/Illrequests.pm