mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
Merge branch 'MDL-73840-master' of https://github.com/mihailges/moodle
This commit is contained in:
commit
c992130786
@ -2842,12 +2842,6 @@ function feedback_extend_settings_navigation(settings_navigation $settings, navi
|
||||
$feedbacknode->add(get_string(($hassecondary ? 'responses' : 'show_entries'), 'feedback'),
|
||||
new moodle_url('/mod/feedback/show_entries.php', ['id' => $settings->get_page()->cm->id]),
|
||||
navigation_node::TYPE_CUSTOM, null, 'responses');
|
||||
|
||||
if ($feedback->anonymous == FEEDBACK_ANONYMOUS_NO AND $feedback->course != SITEID) {
|
||||
$feedbacknode->add(get_string('show_nonrespondents', 'feedback'),
|
||||
new moodle_url('/mod/feedback/show_nonrespondents.php', ['id' => $settings->get_page()->cm->id]),
|
||||
navigation_node::TYPE_CUSTOM, null, 'nonrespondents');
|
||||
}
|
||||
} else {
|
||||
$feedbackcompletion = new mod_feedback_completion($feedback, $context, $settings->get_page()->course->id);
|
||||
if ($feedbackcompletion->can_view_analysis()) {
|
||||
|
@ -137,6 +137,10 @@ if ($action == 'sendmessage' AND $canbulkmessaging) {
|
||||
/// Print the page header
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->set_title($feedback->name);
|
||||
$PAGE->set_secondary_active_tab('responses');
|
||||
if ($responsesnode = $PAGE->settingsnav->find('responses', navigation_node::TYPE_CUSTOM)) {
|
||||
$responsesnode->make_active();
|
||||
}
|
||||
$PAGE->activityheader->set_attrs([
|
||||
'hidecompletion' => true,
|
||||
'description' => ''
|
||||
|
Loading…
x
Reference in New Issue
Block a user