summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8170d5)
raw | patch | inline | side by side (parent: e8170d5)
author | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jan 2008 09:58:48 +0000 (09:58 +0000) | ||
committer | cajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 30 Jan 2008 09:58:48 +0000 (09:58 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8655 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/systems/admin/systems/class_systemManagement.inc | patch | blob | history | |
gosa-plugins/systems/admin/systems/class_termDNS.inc | patch | blob | history |
diff --git a/gosa-plugins/systems/admin/systems/class_systemManagement.inc b/gosa-plugins/systems/admin/systems/class_systemManagement.inc
index 00f39f4af094850b32daf65f70d49c387f677352..75ac762c35d8375a477913f572e22f36c3aa4bcb 100644 (file)
/* 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();
$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;
$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 526eefcccb6a6ea6747de25cc0dc99a07195775d..d46212485a9b3659eaaa6134d542d801d3056c1f 100644 (file)
var $OrigCn = ""; // Initial cn
var $IPisMust = false;
var $MACisMust = false;
- var $dialog;
+ var $dialog = false;
/* DCHP Attributes
*/