mirror of
https://github.com/e107inc/e107.git
synced 2025-08-11 00:54:49 +02:00
UI data 'comma' converted to type;
model supports data type 'set' and 'enum' now; 'userclasses' type works as expected; #9 related, testing required
This commit is contained in:
@@ -558,8 +558,9 @@ class e_validator
|
||||
return true;
|
||||
break;
|
||||
|
||||
case 'set':
|
||||
case 'enum':
|
||||
$tmp = explode('#', $cond);
|
||||
$tmp = array_map('trim', explode(',', $cond));
|
||||
if(!$value || !in_array($value, $tmp))
|
||||
{
|
||||
$this->addValidateResult($name, self::ERR_FIELDS_MATCH);
|
||||
|
Reference in New Issue
Block a user