Code

fixed problem with singleUserSelect dialog
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 13:23:39 +0000 (13:23 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Apr 2010 13:23:39 +0000 (13:23 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17741 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/departments/class_department.inc
gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc
gosa-core/plugins/personal/generic/class_user.inc

index e9297748f3f6cd99067cce64c4eeb200cdceaa66..c44ee7a996a8a2fd2d97a0163268053d391c6400 100644 (file)
@@ -189,7 +189,7 @@ class department extends plugin
       }
       if($this->dialog && count($this->dialog->detectPostActions())){
         $users = $this->dialog->detectPostActions();
-        if(isset($users['action']) && $users['action'] =='edit' && isset($users['targets']) && count($users['targets'])){
+        if(isset($users['action']) && $users['action'] =='userSelected' && isset($users['targets']) && count($users['targets'])){
 
           $headpage = $this->dialog->getHeadpage();
           $dn = $users['targets'][0];
index 5cd22d8e0f167b24c6098e751a9101e20ae4dd21..f17008ce81bdfd921cd408679ecc938c46adbd1e 100644 (file)
@@ -54,7 +54,7 @@ class singleUserSelect extends management
   function detectPostActions()
   {
       $action = management::detectPostActions();
-      if(isset($_POST['add_users_save'])) $action['action'] = "edit";
+      if(isset($_POST['add_users_save'])) $action['action'] = "userSelected";
       return($action);;
   }
 } 
index 55c9e354b448b5bac5f87b27293b8351f7f1ab0e..b44b93ba26da464427546204fcab2dd7227b3399 100644 (file)
@@ -316,7 +316,7 @@ class user extends plugin
     }
     if($this->dialog && $this->dialog instanceOf singleUserSelect && count($this->dialog->detectPostActions())){
       $users = $this->dialog->detectPostActions();
-      if(isset($users['action']) && $users['action'] =='edit' && isset($users['targets']) && count($users['targets'])){
+      if(isset($users['action']) && $users['action'] =='userSelected' && isset($users['targets']) && count($users['targets'])){
         $headpage = $this->dialog->getHeadpage();
         $dn = $users['targets'][0];
         $attrs = $headpage->getEntry($dn);