From 77208c980a6f8765532aa592fb3e467f731393cd Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 20 Apr 2010 13:23:39 +0000 Subject: [PATCH] fixed problem with singleUserSelect dialog git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17741 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/admin/departments/class_department.inc | 2 +- .../admin/groups/singleUserSelect/class_singleUserSelect.inc | 2 +- gosa-core/plugins/personal/generic/class_user.inc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gosa-core/plugins/admin/departments/class_department.inc b/gosa-core/plugins/admin/departments/class_department.inc index e9297748f..c44ee7a99 100644 --- a/gosa-core/plugins/admin/departments/class_department.inc +++ b/gosa-core/plugins/admin/departments/class_department.inc @@ -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]; diff --git a/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc index 5cd22d8e0..f17008ce8 100644 --- a/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc +++ b/gosa-core/plugins/admin/groups/singleUserSelect/class_singleUserSelect.inc @@ -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);; } } diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index 55c9e354b..b44b93ba2 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -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); -- 2.30.2