From fc9bf1a84c6a95426ee8296c73d86034c74a3dc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9sar=20Perales?= Date: Wed, 4 Dec 2013 18:07:38 -0500 Subject: [PATCH] Added missing menu items, User access report by session refs BT#7013 --- main/mySpace/index.php | 5 +++-- main/mySpace/myspace.lib.php | 5 ----- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/main/mySpace/index.php b/main/mySpace/index.php index 72c60588b7..6c44383a4a 100644 --- a/main/mySpace/index.php +++ b/main/mySpace/index.php @@ -158,7 +158,7 @@ echo ''. Display::return_icon('printer.png', get_lang('Print'),'',ICON_SIZE_MEDIUM).''; echo ''; -if (!empty($session_id)) { +if (!empty($session_id) && $display != 'accessoverview') { echo ''.Display::return_icon('back.png', get_lang('Back'),'',ICON_SIZE_MEDIUM).''; if (!api_is_platform_admin()) { if (api_get_setting('add_users_by_coach') == 'true') { @@ -182,7 +182,7 @@ if (!empty($session_id)) { // Actions menu $nb_menu_items = count($menu_items); -if (empty($session_id)) { +if (empty($session_id) || $display == 'accessoverview') { if ($nb_menu_items > 1) { foreach ($menu_items as $key => $item) { echo $item; @@ -193,6 +193,7 @@ if (empty($session_id)) { $sessionFilter = new FormValidator('course_filter', 'get', '', '', array('class'=> 'form-search'), false); $url = api_get_path(WEB_AJAX_PATH).'session.ajax.php?a=search_session'; $sessionList = array(); + $sessionId = isset($_GET['session_id']) ? $_GET['session_id'] : null; if (!empty($sessionId)) { $sessionList = array(); $sessionInfo = SessionManager::fetch($sessionId); diff --git a/main/mySpace/myspace.lib.php b/main/mySpace/myspace.lib.php index 7aedf132a1..d2162524f1 100644 --- a/main/mySpace/myspace.lib.php +++ b/main/mySpace/myspace.lib.php @@ -326,11 +326,6 @@ class MySpace { $track_e_login = Database :: get_main_table(TABLE_STATISTIC_TRACK_E_LOGIN); $track_e_course_access = Database :: get_main_table(TABLE_STATISTIC_TRACK_E_COURSE_ACCESS); - /*$access_url_id = api_get_current_access_url_id(); - if ($_configuration['multiple_access_urls']) { - $condition_multi_url = ", $tbl_url_rel_user as url_user WHERE user.user_id=url_user.user_id AND access_url_id='$access_url_id'"; - }*/ - global $export_csv; if ($export_csv) {