]> git.koha-community.org Git - koha.git/commit
Bug 29033: Add C4::Context->multivalue_preference
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 15 Sep 2021 18:56:59 +0000 (15:56 -0300)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 10 Oct 2023 13:53:59 +0000 (10:53 -0300)
commit538e55afef38fa3ce1d917d926c8b5d56126b0e8
tree174bdaa4ae5c5542dfaee5441419dd2c785e3ad6
parent77303901381b84eaec2bee18a5df1d4ab1bdb6f7
Bug 29033: Add C4::Context->multivalue_preference

I've seen several places in which a syspref is retrieved and then
splitted using split and the fact they are pipe-separated strings.

It seems it would be simple (and handy) to add a method to do that.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/Context.t
=> SUCCESS: Tests pass, a pipe-separated syspref is correctly retrieved
as an arrayref.
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
C4/Context.pm
t/Context.t