index ee53a31684b919f7081bdf005f15fc6549b16789..37e9a2e951c02c3c9d4acbbfd6295318a2c687e6 100644 (file)
$this->objectdn = $obj->dn;
$this->current = $emptyObj;
foreach($obj->by_object as $name => $obj){
- foreach($obj->attributes as $attr){
- $this->current->by_object[$name]->$attr = $obj->$attr;
- }
+
+ $this->current->by_object[$name]->PrepareForCopyPaste($obj);
+
foreach(array("is_account") as $attr){
if(isset($obj->$attr)){
$this->current->by_object[$name]->$attr = $obj->$attr;
$smarty = get_smarty();
$smarty->assign("Complete",false);
$smarty->assign("AttributesToFix",$this->generateAttributesToFix());
+ $smarty->assign("SubDialog",$this->current->SubDialog);
+
$smarty->assign("objectDN" ,$this->objectdn);
$smarty->assign("message", sprintf(_("You are going to copy the entry '%s'."), $this->objectdn));
return($smarty->fetch(get_template_path("copyPasteDialog.tpl",FALSE)));