index 59f5dad25e84391ecf0234641a4034551f6d1667..cac248e2ec5f80e7b5a332908440beddba8d9573 100644 (file)
tabs::save_object($save_current);
/* Update reference, transfer variables */
- $this->by_object['termstartup']->gotoTerminalPath=
- $this->by_object['termgeneric']->gotoTerminalPath;
+ if(isset($this->by_object['termstartup'])){
+ $this->by_object['termstartup']->gotoTerminalPath=
+ $this->by_object['termgeneric']->gotoTerminalPath;
+ }
+
+ /* Assign current cn to all other plugins */
+ $baseobject= $this->by_object['termgeneric'];
+ foreach ($this->by_object as $key => $obj){
+ $this->by_object[$key]->cn= $baseobject->cn;
+ }
}
'dn' to all plugins */
$baseobject= $this->by_object['termgeneric'];
$this->dn= "cn=".$baseobject->cn.",ou=terminals,ou=systems,".$baseobject->base;
+ $baseobject->dn= $this->dn;
foreach ($this->by_object as $key => $obj){
$this->by_object[$key]->dn= $this->dn;
}
tabs::save(TRUE);
- if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
- $this->by_object['printgeneric']->remove_from_parent();
+ if(isset($this->by_object['printgeneric'])){
+ if(($this->by_object['printgeneric']->is_account==false)&&($this->by_object['printgeneric']->initially_was_account==true)){
+ $this->by_object['printgeneric']->remove_from_parent();
+ }
}
/* Fix tagging if needed */