Upgrade to 3.7.3
This commit is contained in:
@@ -96,10 +96,18 @@ return [
|
||||
'methods' => [
|
||||
'columnsValues' => function (array $item, $model) {
|
||||
$item['title'] = [
|
||||
'text' => $item['text'],
|
||||
// override toSafeString() coming from `$item`
|
||||
// because the table cells don't use v-html
|
||||
'text' => $model->toString($this->text),
|
||||
'href' => $model->panel()->url(true)
|
||||
];
|
||||
|
||||
if ($this->info) {
|
||||
// override toSafeString() coming from `$item`
|
||||
// because the table cells don't use v-html
|
||||
$item['info'] = $model->toString($this->info);
|
||||
}
|
||||
|
||||
foreach ($this->columns as $columnName => $column) {
|
||||
// don't overwrite essential columns
|
||||
if (isset($item[$columnName]) === true) {
|
||||
@@ -107,11 +115,7 @@ return [
|
||||
}
|
||||
|
||||
if (empty($column['value']) === false) {
|
||||
if ($column['type'] ?? false === 'html') {
|
||||
$value = $model->toString($column['value']);
|
||||
} else {
|
||||
$value = $model->toSafeString($column['value']);
|
||||
}
|
||||
$value = $model->toString($column['value']);
|
||||
} else {
|
||||
$value = $model->content()->get($column['id'] ?? $columnName)->value();
|
||||
}
|
||||
|
Reference in New Issue
Block a user