Commit cd8a948e by Alexander Kochetov

GridView typo fixed

parent 4fe0eeb1
...@@ -416,7 +416,7 @@ class GridView extends BaseListView ...@@ -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(),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment