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 .= '">';
|
$rightpart .= '">';
|
||||||
|
|
||||||
if (empty($val['alwayseditable'])) {
|
if (empty($val['alwayseditable'])) {
|
||||||
if (in_array($val['type'], array('text', 'html'))) {
|
if (preg_match('/^(text|html)/', $val['type'])) {
|
||||||
$rightpart .= '<div class="longmessagecut">';
|
$rightpart .= '<div class="longmessagecut">';
|
||||||
}
|
}
|
||||||
if ($key == 'lang') {
|
if ($key == 'lang') {
|
||||||
@ -198,7 +198,7 @@ foreach ($object->fields as $key => $val) {
|
|||||||
$rightpart.= $object->showOutputField($val, $key, $value, '', '', '', 0);
|
$rightpart.= $object->showOutputField($val, $key, $value, '', '', '', 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (in_array($val['type'], array('text', 'html'))) {
|
if (preg_match('/^(text|html)/', $val['type'])) {
|
||||||
$rightpart .= '</div>';
|
$rightpart .= '</div>';
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user