Browse Source

fixes initializing attributes in Sort class

tags/2.0.0-beta
Ryadnov 12 years ago
parent
commit
0367d0a6a4
  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), 'desc' => array($name => self::DESC),
'label' => Inflector::camel2words($name), 'label' => Inflector::camel2words($name),
), $attribute); ), $attribute);
} else {
$attributes[$name] = $attribute;
} }
} }
$this->attributes = $attributes; $this->attributes = $attributes;

Loading…
Cancel
Save