Skip to content

Commit

Permalink
fix: OpenSpout exporters unable to read column value
Browse files Browse the repository at this point in the history
Kreyu committed Jan 22, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent c5fdfda commit 95c6e59
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -78,7 +78,7 @@ private function getHeaderRowCells(HeaderRowView $view, array $options): array
protected function getHeaderCell(ColumnHeaderView $view, array $options): Cell
{
return Cell::fromValue(
value: $view->vars['label'] ?? 'a',
value: $view->vars['label'],
style: $this->getStyle($view, 'header_cell_style', $options),
);
}
@@ -94,7 +94,7 @@ protected function getValueRowCells(ValueRowView $view, array $options): array
protected function getValueCell(ColumnValueView $view, array $options): Cell
{
return Cell::fromValue(
value: $view->vars['value'] ?? 'a',
value: $view->vars['value'],
style: $this->getStyle($view, 'value_cell_style', $options),
);
}
2 changes: 2 additions & 0 deletions src/Column/Type/ColumnType.php
Original file line number Diff line number Diff line change
@@ -161,6 +161,8 @@ public function buildExportValueView(ColumnValueView $view, ColumnInterface $col
}

$view->value = $viewData;

$view->vars['value'] = $viewData;
}

public function configureOptions(OptionsResolver $resolver): void

0 comments on commit 95c6e59

Please sign in to comment.