Skip to content

Commit

Permalink
Fix cell content formatting
Browse files Browse the repository at this point in the history
Fix a bug when output has only first row formatted, If DataColumn has cellFormat key defined in contentOptions property.
  • Loading branch information
harloprillar authored Feb 20, 2020
1 parent 7dc1cf1 commit 316b244
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ExportMenu.php
Original file line number Diff line number Diff line change
Expand Up @@ -1377,7 +1377,7 @@ public function generateRow($model, $key, $index)
} else {
$value = '';
}
$format = ArrayHelper::remove($column->contentOptions, 'cellFormat', null);
$format = ArrayHelper::getValue($column->contentOptions, 'cellFormat', null);
$cell = $this->setOutCellValue(
$this->_objWorksheet,
self::columnName($this->_endCol) . ($index + $this->_beginRow + 1),
Expand Down

0 comments on commit 316b244

Please sign in to comment.