mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 04:52:36 +02:00
MDL-77993 mod_lesson: ensure report action menu always present.
This commit is contained in:
parent
76fe404dd5
commit
99681d7df8
@ -120,9 +120,8 @@ if ($action === 'delete') {
|
||||
|
||||
if ($table === false) {
|
||||
echo $lessonoutput->header($lesson, $cm, $action, false, null, get_string('nolessonattempts', 'lesson'));
|
||||
if ($PAGE->has_secondary_navigation()) {
|
||||
echo $reportactionarea;
|
||||
}
|
||||
echo $reportactionarea;
|
||||
|
||||
if (!empty($currentgroup)) {
|
||||
$groupname = groups_get_group_name($currentgroup);
|
||||
echo $OUTPUT->notification(get_string('nolessonattemptsgroup', 'lesson', $groupname));
|
||||
@ -135,9 +134,8 @@ if ($action === 'delete') {
|
||||
}
|
||||
|
||||
echo $lessonoutput->header($lesson, $cm, $action, false, null, get_string('overview', 'lesson'));
|
||||
if ($PAGE->has_secondary_navigation()) {
|
||||
echo $reportactionarea;
|
||||
}
|
||||
echo $reportactionarea;
|
||||
|
||||
groups_print_activity_menu($cm, $url);
|
||||
|
||||
$course_context = context_course::instance($course->id);
|
||||
@ -265,9 +263,8 @@ if ($action === 'delete') {
|
||||
|
||||
**************************************************************************/
|
||||
echo $lessonoutput->header($lesson, $cm, $action, false, null, get_string('detailedstats', 'lesson'));
|
||||
if ($PAGE->has_secondary_navigation()) {
|
||||
echo $reportactionarea;
|
||||
}
|
||||
echo $reportactionarea;
|
||||
|
||||
groups_print_activity_menu($cm, $url);
|
||||
|
||||
$course_context = context_course::instance($course->id);
|
||||
|
@ -11,8 +11,7 @@
|
||||
"course/format/tests/behat/courseindex_keyboardnav.feature",
|
||||
"course/format/tests/behat/courseindex_completion.feature",
|
||||
"course/format/tests/behat/courseindex_language.feature",
|
||||
"badges/tests/behat/badge_navigation.feature",
|
||||
"mod/lesson/tests/behat/lesson_report_detailed_statistics.feature"
|
||||
"badges/tests/behat/badge_navigation.feature"
|
||||
],
|
||||
"tags": [
|
||||
"addablocklink"
|
||||
|
Loading…
x
Reference in New Issue
Block a user