Fix wordbreak not working when field type is 'text:...'
This commit is contained in:
parent
16b0b8de86
commit
878ead5d4a
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user