Branch: Tag:

2016-11-15

2016-11-15 07:57:38 by Martin Karlgren <marty@roxen.com>

Variable.MultipleChoice: Support conversion to/from multiselect.

1282:    //! support for multiselect mode.    constant multiselect_supported = 1;    +  array(string|array(string)) verify_set(mixed to) +  { +  if (multiselect && stringp(to)) { +  return ({ "Compatibility: " +  "Converted to multi-select.\n", +  ({ to }), +  }); +  } else if (!multiselect && arrayp(to)) { +  return ({ "Compatibility: " +  "Converted to single-select.\n", +  sizeof (to) ? to[0] : default_value(), +  }); +  } +  +  +  return ::verify_set(to); +  } +     string diff( int render )    {    if(!render) {