From 59204c2e869b7814d779b8f698ecb6011023cd2c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 Jan 2010 15:56:33 +0000 Subject: [PATCH] Updated faiManagement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15061 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../fai/admin/fai/class_faiManagement.inc | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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"); } } } -- 2.30.2