diff --git a/htdocs/core/tpl/commonfields_view.tpl.php b/htdocs/core/tpl/commonfields_view.tpl.php index 9b7e3cd4df1..663d757bcce 100644 --- a/htdocs/core/tpl/commonfields_view.tpl.php +++ b/htdocs/core/tpl/commonfields_view.tpl.php @@ -91,7 +91,7 @@ foreach ($object->fields as $key => $val) { } print '">'; if (empty($val['alwayseditable'])) { - if (in_array($val['type'], array('text', 'html'))) { + if (preg_match('/^(text|html)/', $val['type'])) { print '
'; } } else {