Skip to content

Commit

Permalink
Merge pull request #37 from laurencei/laurencei-patch-1
Browse files Browse the repository at this point in the history
Fix issue 35
  • Loading branch information
patrickbrouwers authored Dec 27, 2018
2 parents 4ecc6c0 + 45fe9ef commit 806cafa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Actions/ExportToExcel.php
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,8 @@ protected function replaceFieldValuesWhenOnResource(Model $model, array $only =
foreach (array_diff($only, array_keys($row)) as $attribute) {
if ($model->{$attribute}) {
$row[$attribute] = $model->{$attribute};
} else {
$row[$attribute] = '';
}
}

Expand Down

0 comments on commit 806cafa

Please sign in to comment.