diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 13b999aced9..68124630713 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -1789,6 +1789,8 @@ class ExtraFields $langfile = $this->attributes[$extrafieldsobjectkey]['langfile'][$key]; $list = (string) dol_eval($this->attributes[$extrafieldsobjectkey]['list'][$key], 1, 1, '2'); $help = $this->attributes[$extrafieldsobjectkey]['help'][$key]; + $cssview = $this->attributes[$extrafieldsobjectkey]['cssview'][$key]; + $hidden = (empty($list) ? 1 : 0); // If $list empty, we are sure it is hidden, otherwise we show. If it depends on mode (view/create/edit form or list, this must be filtered by caller) if ($hidden) { @@ -2116,7 +2118,7 @@ class ExtraFields $value = ''; } } elseif ($type == 'text') { - $value = dol_htmlentitiesbr($value); + $value = '
'; } elseif ($type == 'html') { $value = dol_htmlentitiesbr($value); } elseif ($type == 'password') { @@ -2143,8 +2145,6 @@ class ExtraFields */ public function getAlignFlag($key, $extrafieldsobjectkey = '') { - global $conf, $langs; - $type = 'varchar'; if (!empty($extrafieldsobjectkey)) { $type = $this->attributes[$extrafieldsobjectkey]['type'][$key]; diff --git a/htdocs/langs/en_US/admin.lang b/htdocs/langs/en_US/admin.lang index ac5c3f815cb..2d331ed29b7 100644 --- a/htdocs/langs/en_US/admin.lang +++ b/htdocs/langs/en_US/admin.lang @@ -2421,7 +2421,7 @@ CssOnEdit=CSS on edit pages CssOnView=CSS on view pages CssOnList=CSS on lists HelpCssOnEditDesc=The CSS used when editing the field.