mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-09-06 03:22:39 +00:00
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:
parent
cf6aef3059
commit
8fef7cf4ba
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue