Browse Source

Merge pull request #731 from Ryadnov/fix_sort_init_attributes

fixes initializing attributes in Sort class
tags/2.0.0-beta
Qiang Xue 11 years ago
parent
commit
cbfbc76051
  1. 2
      framework/yii/data/Sort.php

2
framework/yii/data/Sort.php

@ -203,6 +203,8 @@ class Sort extends Object
'desc' => array($name => self::DESC),
'label' => Inflector::camel2words($name),
), $attribute);
} else {
$attributes[$name] = $attribute;
}
}
$this->attributes = $attributes;

Loading…
Cancel
Save