Browse Source

Merge pull request #2134 from creocoder/gridview-typo

GridView typo fixed
tags/2.0.0-beta
Alexander Makarov 11 years ago
parent
commit
b5b18dafb9
  1. 2
      framework/grid/GridView.php

2
framework/grid/GridView.php

@ -416,7 +416,7 @@ class GridView extends BaseListView
protected function createDataColumn($text)
{
if (!preg_match('/^([\w\.]+)(:(\w*))?(:(.*))?$/', $text, $matches)) {
throw new InvalidConfigException('The column must be specified in the format of "attribute", "attribute:format" or "attribute:format:label');
throw new InvalidConfigException('The column must be specified in the format of "attribute", "attribute:format" or "attribute:format:label"');
}
return Yii::createObject([
'class' => $this->dataColumnClass ?: DataColumn::className(),

Loading…
Cancel
Save