mirror of
https://github.com/yiisoft/yii2.git
synced 2025-08-23 04:00:23 +08:00
fixed test break.
This commit is contained in:
@ -355,7 +355,7 @@ class Sort extends Object
|
|||||||
$definition = $this->attributes[$attribute];
|
$definition = $this->attributes[$attribute];
|
||||||
$directions = $this->getAttributeOrders();
|
$directions = $this->getAttributeOrders();
|
||||||
if (isset($directions[$attribute])) {
|
if (isset($directions[$attribute])) {
|
||||||
$descending = $directions[$attribute] === SORT_DESC;
|
$descending = $directions[$attribute] !== SORT_DESC;
|
||||||
unset($directions[$attribute]);
|
unset($directions[$attribute]);
|
||||||
} else {
|
} else {
|
||||||
$descending = isset($definition['default']) && $definition['default'] === SORT_DESC;
|
$descending = isset($definition['default']) && $definition['default'] === SORT_DESC;
|
||||||
|
Reference in New Issue
Block a user