Fix validation of cf types - transformer only does server -> client

This commit is contained in:
Nathan Gray 2012-05-24 21:12:26 +00:00
parent aafca99105
commit 5bfd90e207

View File

@ -241,6 +241,11 @@ class etemplate_widget_customfields extends etemplate_widget_transformer
$valid = is_array($value) ? implode(',',$value) : $value; $valid = is_array($value) ? implode(',',$value) : $value;
error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value)); error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value));
} }
} elseif ($this->type == 'customfields-types') {
// Transformation doesn't handle validation
$valid =& self::get_array($validated, $this->id ? $form_name : $field, true);
$valid = $value_in;
error_log(__METHOD__."() $form_name $field: ".array2string($value).' --> '.array2string($value));
} }
} }
} }