MDL-62944 mod_data: Action menu missing from database pages

The action menu was missing from many of the database activity pages,
which meant that it could not be accessed until enough had been done to
the activity to make the editing tabs that used view.php accessible.
This commit is contained in:
Neill Magill 2018-08-06 09:46:44 +01:00
parent 175b3708c9
commit 0b673d9714
5 changed files with 5 additions and 0 deletions

View file

@ -103,6 +103,7 @@ $PAGE->requires->js('/mod/data/data.js');
$PAGE->set_title($data->name);
$PAGE->set_heading($course->fullname);
$PAGE->set_pagelayout('admin');
$PAGE->force_settings_menu(true);
echo $OUTPUT->header();
echo $OUTPUT->heading(format_string($data->name), 2);
echo $OUTPUT->box(format_module_intro('data', $data, $cm->id), 'generalbox', 'intro');