MDL-29795 assign: Add 'Duplicate override' breadcrumb
This commit is contained in:
@@ -148,6 +148,7 @@ $string['duedate'] = 'Due date';
|
||||
$string['duedatecolon'] = 'Due date: {$a}';
|
||||
$string['duedate_help'] = 'This is when the assignment is due. Submissions will still be allowed after this date but any assignments submitted after this date are marked as late. To prevent submissions after a certain date - set the assignment cut off date.';
|
||||
$string['duedateno'] = 'No due date';
|
||||
$string['duplicateoverride'] = 'Duplicate override';
|
||||
$string['submissionempty'] = 'Nothing was submitted';
|
||||
$string['submissionmodified'] = 'You have existing submission data. Please leave this page and try again.';
|
||||
$string['submissionmodifiedgroup'] = 'The submission has been modified by somebody else. Please leave this page and try again.';
|
||||
|
||||
@@ -34,6 +34,8 @@ $overrideid = optional_param('id', 0, PARAM_INT);
|
||||
$action = optional_param('action', null, PARAM_ALPHA);
|
||||
$reset = optional_param('reset', false, PARAM_BOOL);
|
||||
|
||||
$pagetitle = get_string('editoverride', 'assign');
|
||||
|
||||
$override = null;
|
||||
if ($overrideid) {
|
||||
|
||||
@@ -98,6 +100,7 @@ if ($action === 'duplicate') {
|
||||
$override->id = $data->id = null;
|
||||
$override->userid = $data->userid = null;
|
||||
$override->groupid = $data->groupid = null;
|
||||
$pagetitle = get_string('duplicateoverride', 'assign');
|
||||
}
|
||||
|
||||
$overridelisturl = new moodle_url('/mod/assign/overrides.php', array('cmid' => $cm->id));
|
||||
@@ -227,7 +230,6 @@ if ($mform->is_cancelled()) {
|
||||
}
|
||||
|
||||
// Print the form.
|
||||
$pagetitle = get_string('editoverride', 'assign');
|
||||
$PAGE->navbar->add($pagetitle);
|
||||
$PAGE->set_pagelayout('admin');
|
||||
$PAGE->set_title($pagetitle);
|
||||
|
||||
Reference in New Issue
Block a user