From: cajus Date: Wed, 30 Jan 2008 09:58:48 +0000 (+0000) Subject: Updated to enable "Apply" X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1b21401b74edaf374637b4b1d3df2b6c876fccf5;p=gosa.git Updated to enable "Apply" git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8655 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc index 00f39f4af..75ac762c3 100644 --- a/gosa-plugins/systems/admin/systems/class_systemManagement.inc +++ b/gosa-plugins/systems/admin/systems/class_systemManagement.inc @@ -723,7 +723,7 @@ class systems extends plugin /* Finish user edit is triggered by the tabulator dialog, so the user wants to save edited data. Check and save at this point. */ - if ((isset($_POST['edit_finish'])) && (isset($this->systab->config)) || $save_object_directly){ + if ((isset($_POST['edit_finish']) || isset($_POST['edit_apply'])) && (isset($this->systab->config)) || $save_object_directly){ /* Check tabs, will feed message array */ $message = array(); @@ -733,7 +733,7 @@ class systems extends plugin $found = false; /* Set gotoMode to active if we there was an ogroup selected . (save_object_directly) */ - foreach(array("workgeneric"=>"active","servgeneric"=>"active","termgeneric"=>"graphic") as $tab => $value){ + foreach(array("workgeneric"=>"active","servgeneric"=>"active","termgeneric"=>"active") as $tab => $value){ if(isset($this->systab->by_object[$tab]->gotoMode)) { $found = true; $this->systab->by_object[$tab]->gotoMode = $value; @@ -796,15 +796,16 @@ class systems extends plugin $ldap->cd($this->config->current['BASE']); } - /* Terminal has been saved successfully, remove lock from - LDAP. */ - if ($this->dn != "new"){ - del_lock ($this->dn); - } + /* Terminal has been saved successfully, remove lock from LDAP. */ + if (!isset($_POST['edit_apply'])){ + if ($this->dn != "new"){ + del_lock ($this->dn); + } - unset ($this->systab); - $this->systab= NULL; - session::un_set('objectinfo'); + unset ($this->systab); + $this->systab= NULL; + session::un_set('objectinfo'); + } } else { /* Ok. There seem to be errors regarding to the tab data, show message and continue as usual. */ diff --git a/gosa-plugins/systems/admin/systems/class_termDNS.inc b/gosa-plugins/systems/admin/systems/class_termDNS.inc index 526eefccc..d46212485 100644 --- a/gosa-plugins/systems/admin/systems/class_termDNS.inc +++ b/gosa-plugins/systems/admin/systems/class_termDNS.inc @@ -21,7 +21,7 @@ class termDNS extends plugin var $OrigCn = ""; // Initial cn var $IPisMust = false; var $MACisMust = false; - var $dialog; + var $dialog = false; /* DCHP Attributes */