summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 3e667d1)
raw | patch | inline | side by side (parent: 3e667d1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Apr 2011 07:14:48 +0000 (07:14 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Apr 2011 07:14:48 +0000 (07:14 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20650 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc b/gosa-plugins/goto-ng/admin/newConfigManagement/class_newConfigManagement.inc
index a5bcdd1dc13f6c34cbc8801a40e6eedad890c2ce..7a4d574ad3806f63e96334f25392a8ef3df821c8 100644 (file)
msg_dialog::display(_("Error"), sprintf(_("Failed to load distributions: %s"), $rpc->get_error()),ERROR_DIALOG);
return(NULL);
}else{
+ $this->cfgTypeMap = array();
foreach($res as $dist){
$this->dataModel->addItem('Distribution','/root', $dist['name'], $dist);
+ $this->cfgTypeMap['/root/'.$dist['name']] = $dist['installation_method'];
foreach($dist['releases'] as $release){
$distPath = "/root/{$dist['name']}";
$this->dataModel->addItem('Release',$distPath, $release['name'], $release);
$this->listing->setContainer($cont);
// Set the correct installation method for the selected item
- $item = $this->dataModel->getItemByPath($cont);
- if($this->cfgTypeMap[$item['type']]){
- $method = $this->cfgTypeMap[$item['type']];
+ if(isset($this->cfgTypeMap[$cont])){
+ $method = $this->cfgTypeMap[$cont];
$this->setInstallMethod($method);
}
}
msg_dialog::display(_("Setup"), $this->errorMessage , ERROR_DIALOG);
$this->initFailed = TRUE;
return;
- }else{
-
- $this->cfgTypeMap = array();
- foreach($this->installationMethods as $methodName => $data){
- foreach($data['items'] as $itemName => $itemData){
- $this->cfgTypeMap[$itemName] = $methodName;
- }
- }
-
}
}