From 5ba1a2679104f8c44cd99f23591f70802e7e426d Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Sep 2007 13:28:50 +0000 Subject: [PATCH] Added edit via link git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7270 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/admin/systems/class_servDHCP.inc | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/plugins/admin/systems/class_servDHCP.inc b/plugins/admin/systems/class_servDHCP.inc index 7d7feb2c5..98fc75bc6 100644 --- a/plugins/admin/systems/class_servDHCP.inc +++ b/plugins/admin/systems/class_servDHCP.inc @@ -255,6 +255,16 @@ class servdhcp extends goService } + if(isset($_GET['act']) && $_GET['act']=="edit" && isset($_GET['id'])){ + $dn = base64_decode($_GET['id']); + if (isset($this->dhcpObjectCache[$dn])){ + $section= $this->objectType($dn); + $this->current_object= $dn; + $this->dialog= new $section($this->dhcpObjectCache[$dn]); + } + } + + /* Do we need to flip is_account state? */ if (isset($_POST['modify_state'])){ $this->is_account= !$this->is_account; @@ -313,7 +323,9 @@ class servdhcp extends goService $tmp = new dhcpNewSectionDialog(NULL); foreach($this->dhcpSections as $section => $values ){ - + + $values = "".$values.""; + if (count($tmp->sectionMap[$this->objectType($section)])){ if ($this->objectType($section) == "dhcpService"){ $DhcpList->AddEntry(array( -- 2.30.2