diff --git a/htdocs/core/class/html.form.class.php b/htdocs/core/class/html.form.class.php index 6283d6ab087..f4ec9c1e919 100644 --- a/htdocs/core/class/html.form.class.php +++ b/htdocs/core/class/html.form.class.php @@ -87,6 +87,7 @@ class Form if ($perm) { $tmp=explode(':',$typeofdata); + if (preg_match('/^(string|email|numeric)$/i',$tmp[0])) $tmp[0] = 'text'; $ret.= '