From: hickert Date: Tue, 5 Jan 2010 15:56:33 +0000 (+0000) Subject: Updated faiManagement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=59204c2e869b7814d779b8f698ecb6011023cd2c;p=gosa.git Updated faiManagement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15061 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index d1b2868f6..af9eb1fcf 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -79,16 +79,16 @@ class faiManagement extends management { $headpage = $this->getHeadpage(); if(count($target) == 1){ - foreach($headpage->entries as $entry){ - if($entry['dn'] == $target[0]){ - if(count($entry['GROUPS']) == 1){ - $data = array_pop($entry['GROUPS']); - $type = $this->get_type($data); - management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]); - }else{ - $this->dialogObject = new faiGroupHandle($entry['GROUPS'],"edit"); - } - break; + $entry = $headpage->getEntry($target[0]); + if($entry){ + echo $target[0]; + print_a($entry); + if(count($entry['GROUPS']) == 1){ + $data = array_pop($entry['GROUPS']); + $type = $this->get_type($data); + management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]); + }else{ + $this->dialogObject = new faiGroupHandle($entry['GROUPS'],"edit"); } } }