diff --git a/htdocs/core/class/commonobject.class.php b/htdocs/core/class/commonobject.class.php
index 99a7189b008..bf32aca2f57 100644
--- a/htdocs/core/class/commonobject.class.php
+++ b/htdocs/core/class/commonobject.class.php
@@ -6862,7 +6862,7 @@ abstract class CommonObject
$out = '';
} elseif (preg_match('/varchar/', $type)) {
$out = ' 0 ? ' maxlength="'.$size.'"' : '').' value="'.dol_escape_htmltag($value).'"'.($moreparam ? $moreparam : '').($autofocusoncreate ? ' autofocus' : '').'>';
- } elseif (in_array($type, array('mail', 'phone', 'url'))) {
+ } elseif (in_array($type, array('email', 'mail', 'phone', 'url'))) {
$out = '';
} elseif (preg_match('/^text/', $type)) {
if (!preg_match('/search_/', $keyprefix)) { // If keyprefix is search_ or search_options_, we must just use a simple text field