mirror of
https://github.com/moodle/moodle.git
synced 2025-06-02 22:25:04 +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
@ -156,6 +156,7 @@ if ($rid) {
|
||||
|
||||
$PAGE->set_title($data->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->force_settings_menu(true);
|
||||
|
||||
// Process incoming data for adding/updating records.
|
||||
|
||||
|
@ -84,6 +84,7 @@ if($mform->is_cancelled()) {
|
||||
// build header to match the rest of the UI
|
||||
$PAGE->set_title($data->name);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$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');
|
||||
|
@ -241,6 +241,7 @@ foreach ($plugins as $plugin=>$fulldir){
|
||||
asort($menufield); //sort in alphabetical order
|
||||
$PAGE->set_title(get_string('course') . ': ' . $course->fullname);
|
||||
$PAGE->set_heading($course->fullname);
|
||||
$PAGE->force_settings_menu(true);
|
||||
|
||||
$PAGE->set_pagetype('mod-data-field-' . $newtype);
|
||||
if (($mode == 'new') && (!empty($newtype)) && confirm_sesskey()) { /// Adding a new field
|
||||
|
@ -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;
|
||||
|
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user