Commit 0367d0a6 by Ryadnov

fixes initializing attributes in Sort class

parent 22b5f9ea
...@@ -203,6 +203,8 @@ class Sort extends Object ...@@ -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;
......
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