Roxen.git/
server/
etc/
modules/
Variable.pmod/
module.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2016-11-15
2016-11-15 07:58:28 by Martin Karlgren <marty@roxen.com>
744ef803848ac829ad3f3b276347d0c67ed76c0e (
19
lines) (+
19
/-
0
)
[
Show
|
Annotate
]
Branch:
6.1
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) {