summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3afeee)
raw | patch | inline | side by side (parent: a3afeee)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 13:15:40 +0000 (13:15 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 28 Sep 2010 13:15:40 +0000 (13:15 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19835 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc
index 6ccca5b9c3da06fba3e16658cf45e8bf409fed1f..bfe94e624a490b2cb69314c76b29c83628260e01 100644 (file)
// Set storage points - We do not have any - We just create a fake list which lists all items
$this->storagePoints = array("");
- $this->base = "cn=root";
// CREATE Dummy entry
$str = file_get_contents('/home/hickert/json.txt');
return;
}
- // Set current item to 'root' and append some dummy entries.
+ // Set current item to 'root', this is the minimum to get things running.
$this->addItem($root,'root',array());
$this->setCurrentItem('root');
+
$this->addItem('PuppetModule','test1',
array(
'dependency' => array('stulle','Wurst'),
$this->rebuildListing();
}
-
+
function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
{
$this->setCurrentItem($target[0]);
{
// Collect item container list to be able to render the fake-base selector
if(!$this->itemContainerSelector){
- $this->itemContainerSelector = new releaseSelector($this->getContainerList(), $this->base, 'cn=root');
+ $this->itemContainerSelector = new releaseSelector(
+ $this->getContainerList(),
+ $this->base,
+ $this->currentItemValues['root']['base']);
}else{
$this->itemContainerSelector->setBases($this->getContainerList());
}
{
// Do nothing if we're already where we wanted to switch to.
if($this->currentItemName == $item) return;
-
+
if(!isset($this->currentItemValues[$item])){
echo "Invalid item name {$name}! Skipping selection!";
return;
$this->currentItem['values'][$widget->getName()] = $widget->getValue();
}
}
-
+
// Set the new item info.
$this->currentItemName = $item;
$this->currentItem = &$this->currentItemValues[$item];