Skip to content

Commit

Permalink
Enhance BooleanColumn data rendering for grid export fixes #888
Browse files Browse the repository at this point in the history
  • Loading branch information
kartik-v committed May 15, 2019
1 parent 6744723 commit 910e8f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ Change Log: `yii2-grid`

## Version 3.3.1

**Date:** _under development_
**Date:** 15-May-2019

- (enh #901): Update Latvian Translations.
- (bug #889): Correct nested expand row validation.
- (enh #888): Enhance `BooleanColumn` data rendering for grid export.
- (bug #885, #886): Fix for `CheckboxColumn::checkboxOptions` to be set as Closure.
Expand Down
2 changes: 1 addition & 1 deletion src/BooleanColumn.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function getIconMarkup($type = 'true')
return $label;
}
$isBs4 = $this->grid->isBs4();
if ($type === 'false') {
if ($type === 'true') {
return ($isBs4 ? GridView::ICON_ACTIVE_BS4 : GridView::ICON_ACTIVE) .
Html::tag('span', $this->trueLabel, ['class' => 'kv-grid-boolean']);
}
Expand Down

0 comments on commit 910e8f8

Please sign in to comment.