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)
committerArthur Suzuki <arthur.suzuki@biblibre.com>
Wed, 3 May 2023 19:07:24 +0000 (21:07 +0200)
commit0b18e0b07eacd8cafa90bdb3bdccaecd1c886f9c
tree17735de0a1fbaddb5c8de3c85ea42f5210f4ca2c
parentfeab77882c87550f01038fe55aeb72c9a9f3c23b
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>
(cherry picked from commit aaa5bcd16bc5c4e50986961ad79d29801e67c889)
Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com>
(cherry picked from commit feea30d42bdce19cee6c7f2f7b89dbd4a51bf810)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 3735277be43ae061bf48e3e1a3a1fdb991459f57)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Koha/REST/V1/Illrequests.pm