Merge pull request #2134 from creocoder/gridview-typo

GridView typo fixed
This commit is contained in:
Alexander Makarov
2014-01-23 12:16:46 -08:00

View File

@@ -416,7 +416,7 @@ class GridView extends BaseListView
protected function createDataColumn($text) protected function createDataColumn($text)
{ {
if (!preg_match('/^([\w\.]+)(:(\w*))?(:(.*))?$/', $text, $matches)) { 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([ return Yii::createObject([
'class' => $this->dataColumnClass ?: DataColumn::className(), 'class' => $this->dataColumnClass ?: DataColumn::className(),