Browse Source

Refactored DataColumn::renderHeaderCellContent()

tags/2.0.0-beta
Carsten Brandt 11 years ago
parent
commit
39c002e83c
  1. 8
      framework/yii/grid/DataColumn.php

8
framework/yii/grid/DataColumn.php

@ -72,7 +72,10 @@ class DataColumn extends Column
protected function renderHeaderCellContent() protected function renderHeaderCellContent()
{ {
if ($this->header === null) { if ($this->header !== null || $this->label === null && $this->attribute === null) {
return parent::renderHeaderCellContent();
}
$provider = $this->grid->dataProvider; $provider = $this->grid->dataProvider;
if ($this->label === null) { if ($this->label === null) {
@ -100,9 +103,6 @@ class DataColumn extends Column
} else { } else {
return Html::encode($label); return Html::encode($label);
} }
} else {
return parent::renderHeaderCellContent();
}
} }
protected function renderFilterCellContent() protected function renderFilterCellContent()

Loading…
Cancel
Save