1.2: fix for groupPath recursive in generateList

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@3819 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2006-11-03 19:49:32 +00:00
parent cf6aef3059
commit 8fef7cf4ba

View file

@ -1560,8 +1560,10 @@ class Model extends Overloadable {
} else {
$fields = null;
}
if($this->recursive >= 1) {
if($groupPath == null && $this->recursive >= 1) {
$this->recursive = -1;
} else if($groupPath && $this->recursive >= 1){
$this->recursive = 0;
}
$result = $this->findAll($conditions, $fields, $order, $limit);