summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 61ba821)
raw | patch | inline | side by side (parent: 61ba821)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 10:29:00 +0000 (10:29 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 28 Oct 2009 10:29:00 +0000 (10:29 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14667 594d385d-05f5-0310-b6e9-bd551577e9d8
diff --git a/gosa-core/include/class_CopyPasteHandler.inc b/gosa-core/include/class_CopyPasteHandler.inc
index ee772bb300afcc345fba4ed46facca515865fde1..d9e8948c23a60a748c8e5a76f05cadb9c514c8f4 100644 (file)
/* Load next queue entry */
if(!count($msgs)){
- $this->lastdn = $this->current['object']->dn;
$this->current['object']->save();
+ $this->lastdn = $this->current['object']->dn;
$this->current = FALSE;
}else{
foreach( $msgs as $msg){
index 0d0f43ba0b16de5abe7e29f40f937a1a5a90ac39..801a00e0aedf69fce6f6e3967116ffbd083a1f4e 100644 (file)
if(empty($this->plIcon)){
$this->plIcon = "plugins/".$plugname."/images/plugin.png";
}
+
+ // Register default actions
+ $this->registerAction("new", "newEntry");
+ $this->registerAction("edit", "editEntry");
+ $this->registerAction("apply", "applyChanges");
+ $this->registerAction("save", "saveChanges");
+ $this->registerAction("cancel", "cancelEdit");
+ $this->registerAction("remove", "removeEntryRequested");
+ $this->registerAction("removeConfirmed", "removeEntryConfirmed");
+
+ $this->registerAction("copy", "copyPasteHandler");
+ $this->registerAction("cut", "copyPasteHandler");
+ $this->registerAction("paste", "copyPasteHandler");
+
+ $this->registerAction("snapshot", "createSnapshotDialog");
+ $this->registerAction("restore", "restoreSnapshotDialog");
+ $this->registerAction("saveSnapshot","saveSnapshot");
+ $this->registerAction("restoreSnapshot","restoreSnapshot");
+ $this->registerAction("cancelSnapshot","closeDialogs");
+
}
function execute()
}
$this->snapHandler->setSnapshotBases($bases);
}
-
+
+ echo $this->cpHandler->lastdn;
+
$this->headpage->update();
$display = $this->headpage->render();
return($this->getHeader().$display);
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index 6b9555930835a9500605024b0de4417cc98c67c7..9a10adf8a2551327afd5d8154f93a87bd7a58eb0 100644 (file)
parent::__construct($config, $ui, "users", $headpage);
- $this->registerAction("new", "newEntry");
- $this->registerAction("edit", "editEntry");
- $this->registerAction("apply", "applyChanges");
- $this->registerAction("save", "saveChanges");
- $this->registerAction("cancel", "cancelEdit");
- $this->registerAction("remove", "removeEntryRequested");
- $this->registerAction("removeConfirmed", "removeEntryConfirmed");
-
- $this->registerAction("copy", "copyPasteHandler");
- $this->registerAction("cut", "copyPasteHandler");
- $this->registerAction("paste", "copyPasteHandler");
-
- $this->registerAction("snapshot", "createSnapshotDialog");
- $this->registerAction("restore", "restoreSnapshotDialog");
- $this->registerAction("saveSnapshot","saveSnapshot");
- $this->registerAction("restoreSnapshot","restoreSnapshot");
- $this->registerAction("cancelSnapshot","closeDialogs");
-
// Register special user actions
$this->registerAction("lock", "lockEntry");
$this->registerAction("lockUsers", "lockUsers");
}
+ function copyPasteHandler($s_action,$s_entry)
+ {
+ $this->cpHandler->lastdn = "";
+ $str = management::copyPasteHandler($s_action,$s_entry);
+
+ if($this->cpHandler->lastdn != "" && isset($_POST['passwordTodo']) && $_POST['passwordTodo'] == "new"){
+ $this->pwd_change_queue[] = $this->cpHandler->lastdn;
+ return($this->handlePasswordQueue());
+ }
+ return($str);
+ }
+
+
static function filterLockImage($userPassword)
{
$image= "images/empty.png";