Skip to content

Commit

Permalink
export components bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayjest committed Apr 2, 2015
1 parent 67a589e commit b5165d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Components/CsvExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ protected function renderHeader($f)
{
$output = [];
foreach ($this->grid->getConfig()->getColumns() as $column) {
if (!$column->isHidden() && !$column->isExportHidden()) {
if (!$column->isHidden()) {
$output[] = $this->escapeString($column->getLabel());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Components/ExcelExport.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ protected function getHeaderRow()
{
$output = [];
foreach ($this->grid->getConfig()->getColumns() as $column) {
if (!$column->isExportHidden()) {
if ($this->isColumnExported($column)) {
$output[] = $this->escapeString($column->getLabel());
}
}
Expand Down

0 comments on commit b5165d6

Please sign in to comment.