mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
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:
parent
175b3708c9
commit
0b673d9714
5 changed files with 5 additions and 0 deletions
|
@ -51,6 +51,7 @@ require_capability('mod/data:managetemplates', $context);
|
|||
$PAGE->set_url(new moodle_url('/mod/data/preset.php', array('d'=>$data->id)));
|
||||
$PAGE->set_title(get_string('course') . ': ' . $course->fullname);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->force_settings_menu(true);
|
||||
|
||||
// fill in missing properties needed for updating of instance
|
||||
$data->course = $cm->course;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue