diff --git a/htdocs/core/class/extrafields.class.php b/htdocs/core/class/extrafields.class.php index 237ac4fbd4141..af430118b51a5 100644 --- a/htdocs/core/class/extrafields.class.php +++ b/htdocs/core/class/extrafields.class.php @@ -591,6 +591,7 @@ public function update($attrname, $label, $type, $length, $elementtype, $unique $lengthdb = '255'; } elseif ($type == 'html') { $typedb = 'text'; + $lengthdb = $length; } elseif ($type == 'link') { $typedb = 'int'; $lengthdb = '11';