Remove duplicate order key.

This was a mistake made in 4b6dba0.

Fixes #5376
This commit is contained in:
mark_story 2014-12-10 22:32:59 -05:00
parent 23c4b7b7d5
commit cf108dbff3

View file

@ -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;