index 9205244d5c80af7909f92b587851d65dbe62cb9b..7800319c5584869662698c9a288de848e6340fcd 100644 (file)
function grouptabs($config, $data, $dn)
{
- tabs::tabs($config, $data, $dn);
+ tabs::tabs($config, $data, $dn,"groups");
+ $this->addSpecialTabs();
}
function save_object($save_current= FALSE)
}
}
+ function delete()
+ {
+ /* Put baseobjects 'cn' to mailobjects 'uid' */
+ $baseobject= $this->by_object['group'];
+ if (isset($this->by_object['mailgroup'])){
+ $this->by_object['mailgroup']->uid= $baseobject->cn;
+ }
+ tabs::delete();
+ }
+
function save()
{
$baseobject= $this->by_object['group'];
/* Write entry on new 'dn' */
if ($this->dn != "new"){
+ $baseobject->update_acls($this->dn,$new_dn);
$baseobject->move($this->dn, $new_dn);
$this->by_object['group']= $baseobject;
}
$this->dn= $new_dn;
}
- return tabs::save();
+ $ret= tabs::save();
+
+ /* Fix tagging if needed */
+ $baseobject->dn= $new_dn;
+ $baseobject->handle_object_tagging();
+
+ return $ret;
}
+ function saveCopyDialog()
+ {
+ tabs::saveCopyDialog();
+
+ /* Update reference, transfer variables */
+ $baseobject= $this->by_object['group'];
+ foreach ($this->by_object as $name => $obj){
+ /* Don't touch base object */
+ if ($name != 'group'){
+ $obj->parent= &$this;
+ $obj->cn= $baseobject->cn;
+ $this->by_object[$name]= $obj;
+ }
+ }
+ }
+
}
?>