mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Remove duplicate order key.
This was a mistake made in 4b6dba0
.
Fixes #5376
This commit is contained in:
parent
23c4b7b7d5
commit
cf108dbff3
1 changed files with 2 additions and 2 deletions
|
@ -494,8 +494,8 @@ class TreeBehavior extends ModelBehavior {
|
|||
$item = $result[0];
|
||||
$results = $Model->find('all', array(
|
||||
'conditions' => array($scope, $Model->escapeField($left) . ' <=' => $item[$left], $Model->escapeField($right) . ' >=' => $item[$right]),
|
||||
'fields' => $fields, 'order' => array($Model->escapeField($left) => 'asc'),
|
||||
'order' => false,
|
||||
'fields' => $fields,
|
||||
'order' => array($Model->escapeField($left) => 'asc'),
|
||||
'recursive' => $recursive
|
||||
));
|
||||
return $results;
|
||||
|
|
Loading…
Reference in a new issue