From 0367d0a6a4994b2c42581b9c5699c70ab5e9833b Mon Sep 17 00:00:00 2001 From: Ryadnov <2008.big@gmail.com> Date: Thu, 8 Aug 2013 21:24:00 +0400 Subject: [PATCH] fixes initializing attributes in Sort class --- framework/yii/data/Sort.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/framework/yii/data/Sort.php b/framework/yii/data/Sort.php index 4d7851a..bddc96b 100644 --- a/framework/yii/data/Sort.php +++ b/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;