comanage-dev - [comanage-dev] question on COUs and detecting cycle in parent/child
Subject: COmanage Developers List
List archive
- From: Scott Koranda <>
- To: comanage-dev <>
- Subject: [comanage-dev] question on COUs and detecting cycle in parent/child
- Date: Wed, 14 Mar 2012 11:41:42 -0500
Hi,
CouController.php contains this code:
// Check if parent would cause a loop
if($this->Cou->isChildCou($this->viewVars['cur_co']['Cou']['id'], $parentCou)
)
{
if($this->restful)
$this->restResultHeader(403, "Parent Would Create Cycle");
else
$this->Session->setFlash(_txt('er.cou.cycle',
array($reqdata['CoGroupMember']['co_group_id'])), '', array(),
'error');
return(false);
}
I am getting a Cake exception because for the array viewVars
there is no key 'cur_co'.
What precisely should be the first argument to the method
isChildCou()?
The code documentation says
@param Array Head of the branch to be searched
but that is not descriptive enough--an array of what? With
what structure? From where?
Thanks,
Scott
- [comanage-dev] question on COUs and detecting cycle in parent/child, Scott Koranda, 03/14/2012
- Re: [comanage-dev] question on COUs and detecting cycle in parent/child, Marie Huynh, 03/14/2012
Archive powered by MHonArc 2.6.16.