This commit is contained in:
Sam Georges 2014-06-08 18:08:54 +10:00
parent c044e63a07
commit 99408b6b2a
1 changed files with 3 additions and 1 deletions

View File

@ -372,7 +372,9 @@ class Form extends WidgetBase
return $field;
}
/*
* Defined field type
*/
$fieldType = isset($config['type']) ? $config['type'] : null;
if (!is_string($fieldType) && !is_null($fieldType))
throw new ApplicationException(Lang::get('backend::lang.field.invalid_type', ['type'=>gettype($fieldType)]));