1
0
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:
SecretR
2012-12-17 16:57:24 +02:00
parent 04e9157961
commit ed648b9ea4
6 changed files with 119 additions and 48 deletions

View File

@@ -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);