summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 238eaa2)
raw | patch | inline | side by side (parent: 238eaa2)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 27 Sep 2010 07:27:02 +0000 (07:27 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 27 Sep 2010 07:27:02 +0000 (07:27 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19791 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 324a51198ff4b90734d603759a689087847ad421..f0ed51c56d666314f5f4aa769ada8adec2bfa0a2 100644 (file)
{
private $TemplateEngine = NULL;
+ private $idToName = array();
+
function __construct(&$config, $dn)
{
$this->TemplateEngine = new TemplateEngine($config);
$array = ($array == NULL)? $this->currentItemValues['root']: $array;
$str = "<ul>";
$plug = $_GET['plug'];
- $str .= "<a href='?plug={$plug}&item={$array['name']}'>";
+
+ $id = array_search($array['name'],$this->idToName);
+ $str .= "<a href='?plug={$plug}&item={$id}'>";
if($this->currentItemName == $array['name']){
$str .= "<b>".$array['name']."</b>";
}else{
function addItem($type,$name, $values)
{
$current = &$this->currentItem;
+ $this->idToName[] = $name;
$new = array(
'children' => array(),
'type' => $type,
}
if(isset($_GET['item'])){
- $this->setCurrentItem($_GET['item']);
+ $name = $this->idToName[$_GET['item']];
+ $this->setCurrentItem($name);
}
}
}