Correcion de campo requerido array en TRIGGERWIZARD

This commit is contained in:
Brayan Osmar Pereyra Suxo
2014-03-12 15:38:56 -04:00
parent 63ee1d318d
commit 0fe72261f9

View File

@@ -238,7 +238,7 @@ class Process
switch ($arrayFieldDefinition[$fieldName]["type"]) {
case "array":
if (!is_array($fieldValue)) {
if (!preg_match("/^\s*array\s*\(.*\)\s*$/", $fieldValue)) {
if ((!preg_match("/^\s*array\s*\(.*\)\s*$/", $fieldValue)) && $fieldValue != '') {
throw (new \Exception(str_replace(array("{0}"), array($fieldNameAux), "The \"{0}\" attribute is not array")));
}
}