Baptiste,Do not forget to answer to the list :)I do not think that would bring a big improvement, what code do you want to simplify?On Tue, 7 Mar 2017 at 13:42 Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> wrote:Hi,
Indeed I talk about this syspref for example
I mean a function like : inPref('myPref', ''myValue") which returns true if MyValue is checked, instead of split around comas or using a grep ;) In order to have the same function as Preference, but for multivaluated function.
I would like to have some function to check directly if the value I need to do a specific action is Checked, and I don't see how it is a problem, even if it's not mandatory to have at least one option ;)
Cheers,
Baptiste
Le 07/03/2017 à 17:00, Jonathan Druart a écrit :
Hello Baptiste,
Are you talking about prefs like OpacAdvSearchOptions?It's not mandatory to have at least one option, so I do not think it's is a good idea :)
Cheers,Jonathan
On Thu, 2 Mar 2017 at 13:32 Baptiste Wojtkowski <baptiste.wojtkowski@biblibre.com> wrote:
Hi,
Is there any function to check if a value is checked in a multivaluated
syspref ? I don't see any and the few multivaluated function I saw seem
using long template line code to do this simple thing.
Could this be a good idea to write one ?
Baptiste
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/
_______________________________________________ Koha-devel mailing list Koha-devel@lists.koha-community.org http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/