[Koha-bugs] [Bug 29033] Add C4::Context->multivalue_preference

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Sep 16 14:01:13 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=29033

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 124921
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124921&action=edit
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 at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list