Bug 19605: (QA follow-up): available_backends fix reduce
authorPedro Amorim <pedro.amorim@ptfs-europe.com>
Fri, 19 Apr 2024 13:28:02 +0000 (13:28 +0000)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Fri, 19 Apr 2024 17:54:43 +0000 (19:54 +0200)
commit6764166b20d75e3527b72101d7b02194dd843938
tree9da221155352ab5e614f78f6e5018f1b17c4d2da
parent764e6cd57a670cb5f38195827ebd3a3a24b675c9
Bug 19605: (QA follow-up): available_backends fix reduce

available_backends was only considering dir backends for reduce, it should consider all backends, including plugin backends.

This relates to the ILLOpacbackends syspref, where if you add a backend name that happens to be a plugin, it was not disabling it for the OPAC.
This change considers all backends for Illopacbackends, regardless of if its a plugin or a directory backend.

This was made evident while writing tests for bug 36197.
Regression tests for this particular use case, and others, are part of bug 36197.

Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Koha/Illrequest/Config.pm