diff --git a/plugins/admin/groups/class_groupManagement.inc b/plugins/admin/groups/class_groupManagement.inc
index 4eedcbacbd07cc7cbfa96028ca4ff0cef6d49400..70bb5499a921cc48af95917a893655b7c6ff29f9 100644 (file)
if(($s_action == "editPaste") || ($this->CopyPasteHandler->stillOpen())){
$this->CopyPasteHandler->save_object();
$this->CopyPasteHandler->SetVar("base",$_SESSION['CurrentMainBase']);
- return($this->CopyPasteHandler->execute());
+ if($str = $this->CopyPasteHandler->execute()){
+ return( $str);
+ };
+ /* Ensure that the new object is shown in the list now */
+ $this->relaod();
}
$obj->set_acl($acl);
$objNew->set_acl($acl);
$this->CopyPasteHandler->Copy($obj,$objNew);
-
- foreach($this->CopyPasteHandler->current->by_object as $name => $obj){
- foreach(array('is_account','gotoHotplugDevices','gotoLogonScripts',
- 'gotoProfileServers','gotoProfileFlag_C','gotoProfileFlag_L',
- 'gotoPrinter','useProfile','OrigCn','Categories') as $attr){
- if(isset($obj->$attr)){
- $this->CopyPasteHandler->current->by_object[$name]->$attr = $obj->$attr;
- }
- }
- }
}