From 3705da7d523e55b4b49de89b035bfa2868125371 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 11 Sep 2007 13:28:31 +0000 Subject: [PATCH] Added dhcp edit via link in lsits git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7269 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 8bbf7a5e2..886511b09 100644 --- a/plugins/admin/systems/class_servDHCP.inc +++ b/plugins/admin/systems/class_servDHCP.inc @@ -278,6 +278,16 @@ class servdhcp extends plugin } + 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; @@ -335,7 +345,9 @@ class servdhcp extends plugin $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