Fix wordbreak not working when field type is 'text:...'

This commit is contained in:
Laurent Destailleur 2022-10-05 11:11:23 +02:00
parent 16b0b8de86
commit 878ead5d4a

View File

@ -182,7 +182,7 @@ foreach ($object->fields as $key => $val) {
$rightpart .= '">';
if (empty($val['alwayseditable'])) {
if (in_array($val['type'], array('text', 'html'))) {
if (preg_match('/^(text|html)/', $val['type'])) {
$rightpart .= '<div class="longmessagecut">';
}
if ($key == 'lang') {
@ -198,7 +198,7 @@ foreach ($object->fields as $key => $val) {
$rightpart.= $object->showOutputField($val, $key, $value, '', '', '', 0);
}
}
if (in_array($val['type'], array('text', 'html'))) {
if (preg_match('/^(text|html)/', $val['type'])) {
$rightpart .= '</div>';
}
} else {