mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-15 22:09:48 +08:00
Merge pull request #2134 from creocoder/gridview-typo
GridView typo fixed
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user