summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7a19adb)
raw | patch | inline | side by side (parent: 7a19adb)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Apr 2011 13:41:38 +0000 (13:41 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 6 Apr 2011 13:41:38 +0000 (13:41 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20659 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 f0b75b544f8176a86f735c1f2e0cfb71770c81cd..6910f6559b4b0baabe828a7f9d3afd304e875188 100644 (file)
// Walk through each entry and then try to add it to the model
foreach($sLen as $unused => $itemPath){
+ // Do not add the root element '/'
+ if($itemPath == "/") continue;
+
$type = $res[$itemPath];
// Root installation objects do not have a name, so we use 'root' here.
- $targetPath = trim($path."/root/".$itemPath);
+ $targetPath = trim($path."/".$itemPath);
// Remove trailing and duplicated slashes
$targetPath = rtrim($targetPath, '/');
*/
function setCurrentContainer($cont)
{
-
$this->selectedContainer = $cont;
// Update list of items within the selected container.
return;
}
$this->installationMethods = $res;
+
if(!count($this->installationMethods)){
$this->errorMessage = _("No selectable install methods returned!");
msg_dialog::display(_("Setup"), $this->errorMessage , ERROR_DIALOG);
foreach($this->installationMethods as $method => $items){
foreach($items['items'] as $itemName => $item){
$this->cfgItemMap[$itemName] = $method;
+
+ // This enables us to create the first level of config items when
+ // a release is selected.
+ if($item['name'] == "/"){
+ $this->installationMethods[$method]['items']['Release'] =
+ &$this->installationMethods[$method]['items'][$itemName];
+ }
}
}
}