Skip to content

Commit

Permalink
fix: missing "value" vars in ColumnValueView in columns of type Colle…
Browse files Browse the repository at this point in the history
…ctionColumnType
  • Loading branch information
Kreyu committed Feb 19, 2024
1 parent 8f55a97 commit d98433b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Column/Type/CollectionColumnType.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public function buildExportValueView(ColumnValueView $view, ColumnInterface $col
'separator' => $options['separator'],
];

$view->value = implode($options['export']['separator'], array_map(
static fn (ColumnValueView $view) => $view->value,
$view->value = $view->vars['value'] = implode($options['export']['separator'], array_map(
static fn (ColumnValueView $view) => $view->vars['value'],
$this->createChildrenColumnValueViews($view, $column, $options['export']),
));
}
Expand Down Expand Up @@ -66,7 +66,7 @@ private function createChildrenColumnValueViews(ColumnValueView $view, ColumnInt

$children = [];

foreach ($view->value ?? [] as $index => $data) {
foreach ($view->vars['value'] ?? [] as $index => $data) {
// Create a virtual row view for the child column.
$valueRowView = clone $view->parent;
$valueRowView->origin = $view->parent;
Expand Down

0 comments on commit d98433b

Please sign in to comment.