diff --git a/plugins/admin/systems/class_systemManagement.inc b/plugins/admin/systems/class_systemManagement.inc
index 4ca3ab71ae585b3ca0faea85314b06daa45c6916..77c6eb364a81306ab70508cbad81cafd843834d2 100644 (file)
/* Save, or display error message? */
if (count($message) == 0){
- /* Save terminal data to ldap */
- if(isset($_SESSION['SelectedSystemType']['ogroup']) && $_SESSION['SelectedSystemType']['ogroup'] != 'none'){
- foreach (array("workservice", "termservice") as $cls){
- if (isset($this->systab->by_object[$cls])){
- $this->systab->by_object[$cls]->gotoXMouseport= "";
- $this->systab->by_object[$cls]->gotoXMouseType= "";
- $this->systab->by_object[$cls]->gotoXResolution= "";
- $this->systab->by_object[$cls]->gotoXColordepth= "";
- }
- }
- }
-
- $this->systab->save();
- gosa_log ("System object'".$this->dn."' has been saved");
-
/* Incoming behavior; you can select a system type and an ogroup membership.
* If this object is an Incoming object, $_SESSION['SelectedSystemType'] isset.
* Check if we must add the new object to an object group.
$og->save();
}
}
+ }
+
+ /* Save terminal data to ldap */
+ if(isset($_SESSION['SelectedSystemType']['ogroup']) && $_SESSION['SelectedSystemType']['ogroup'] != 'none'){
+ foreach (array("workservice", "termservice") as $cls){
+ if (isset($this->systab->by_object[$cls])){
+ $this->systab->by_object[$cls]->gotoXMouseport= "";
+ $this->systab->by_object[$cls]->gotoXMouseType= "";
+ $this->systab->by_object[$cls]->gotoXResolution= "";
+ $this->systab->by_object[$cls]->gotoXColordepth= "";
+ }
+ }
+ }
+
+ $this->systab->save();
+ gosa_log ("System object'".$this->dn."' has been saved");
+
+ if(isset($_SESSION['SelectedSystemType'])){
if(!isset($ldap)){
$ldap = $this->config->get_ldap_link();
}
$ldap->cd($this->config->current['BASE']);
}
+
/* Terminal has been saved successfully, remove lock from
LDAP. */
if ($this->dn != "new"){