From 315b26b69766af4dfc12aa9de6031346c4e469bf Mon Sep 17 00:00:00 2001 From: SJ Date: Tue, 16 Aug 2016 21:57:00 +0200 Subject: [PATCH] gui fixes Change-Id: Ifd1dc789d8379025b6349236cb18995d45435abc Signed-off-by: SJ --- webui/controller/user/settings.php | 4 ++-- webui/model/user/auth.php | 6 +++--- webui/view/theme/default/templates/user/settings.tpl | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/webui/controller/user/settings.php b/webui/controller/user/settings.php index e0fe061c..ab3b7608 100644 --- a/webui/controller/user/settings.php +++ b/webui/controller/user/settings.php @@ -41,8 +41,8 @@ class ControllerUserSettings extends Controller { $auditgroups = preg_replace("/\n/", ", ", $this->model_group_group->get_groups_by_email($session->get("emails"))); - $folders = $session->get("folders"); - + $folders = array_keys($session->get("folders")); + foreach ($folders as $r) { $auditfolders .= ', ' . $r; } diff --git a/webui/model/user/auth.php b/webui/model/user/auth.php index 31717134..a5a47ee9 100644 --- a/webui/model/user/auth.php +++ b/webui/model/user/auth.php @@ -15,6 +15,9 @@ class ModelUserAuth extends Model { $session->set("auditdomains", $data['auditdomains']); $session->set("emails", $data['emails']); + //$data['folders'] = $this->model_folder_folder->get_folder_id_array_for_user($query->row['uid'], $data['admin_user']); + $data['folders'] = $this->model_folder_folder->get_folder_names_for_user($data['email']); + $session->set("folders", $data['folders']); } @@ -124,9 +127,6 @@ class ModelUserAuth extends Model { $extra_emails = $this->model_user_user->get_email_addresses_from_groups($data['emails']); $data['emails'] = array_merge($data['emails'], $extra_emails); - //$data['folders'] = $this->model_folder_folder->get_folder_id_array_for_user($query->row['uid'], $data['admin_user']); - $data['folders'] = $this->model_folder_folder->get_folder_names_for_user($data['email']); - $session->set("auth_data", $data); $this->is_ga_code_needed($username); diff --git a/webui/view/theme/default/templates/user/settings.tpl b/webui/view/theme/default/templates/user/settings.tpl index 73c21070..f7053a6f 100644 --- a/webui/view/theme/default/templates/user/settings.tpl +++ b/webui/view/theme/default/templates/user/settings.tpl @@ -34,7 +34,7 @@ - + :