Fix breadcrumb for teacher detail from reporting #2067

pull/2487/head
Angel Fernando Quiroz Campos 7 years ago
parent 12dffcdb0c
commit 29e9dcd834
  1. 5
      main/mySpace/myStudents.php
  2. 2
      main/mySpace/teachers.php

@ -164,6 +164,11 @@ if (!empty($details)) {
"name" => get_lang('SessionOverview')
);
}
} elseif ($origin === 'teacher_details') {
$this_section = SECTION_TRACKING;
$interbreadcrumb[] = array("url" => "index.php", "name" => get_lang('MySpace'));
$interbreadcrumb[] = array("url" => "teachers.php", "name" => get_lang('Teachers'));
$nameTools = $user_info['complete_name'];
} else {
$interbreadcrumb[] = array(
"url" => api_is_student_boss() ? "#" : "index.php",

@ -161,7 +161,7 @@ function get_users($from, $limit, $column, $direction)
$detailsLink = '<a href="myStudents.php?student='.$student_id.'&id_coach='.$coach_id.'&id_session='.$sessionId.'">
'.Display::return_icon('2rightarrow.png', get_lang('Details')).'</a>';
} else {
$detailsLink = '<a href="myStudents.php?student='.$student_id.'">
$detailsLink = '<a href="myStudents.php?student='.$student_id.'&origin=teacher_details">
'.Display::return_icon('2rightarrow.png', get_lang('Details')).'</a>';
}
$row[] = $detailsLink;

Loading…
Cancel
Save