mirror of
https://github.com/moodle/moodle.git
synced 2025-04-20 16:04:25 +02:00
MDL-13259 Redirecting to creation of new scale when none exists. Merging from MOODLE_19_STABLE
This commit is contained in:
parent
976bf10efa
commit
1f93ed2a2d
@ -133,6 +133,12 @@ if ($courseid) {
|
||||
admin_externalpage_print_header();
|
||||
}
|
||||
|
||||
if (!grade_scale::fetch_all_local($courseid) && !grade_scale::fetch_all_global()) {
|
||||
notice_yesno(get_string('noscales', 'grades'), $CFG->wwwroot.'/grade/edit/scale/edit.php?courseid='.$courseid, $returnurl);
|
||||
print_footer($course);
|
||||
die();
|
||||
}
|
||||
|
||||
$mform->display();
|
||||
|
||||
if ($courseid) {
|
||||
|
@ -349,6 +349,7 @@ $string['nonweightedpct'] = 'non-weighted %%';
|
||||
$string['nooutcome'] = 'No outcome';
|
||||
$string['nooutcomes'] = 'Outcome items must be linked to a course outcome, but there are no outcomes for this course. Would you like to add one?';
|
||||
$string['nopublish'] = 'Do not publish';
|
||||
$string['noscales'] = 'Outcomes must be linked to a course scale or global scale, but there are none. Would you like to add one?';
|
||||
$string['noselectedcategories'] = 'no categories were selected.';
|
||||
$string['noselecteditems'] = 'no items were selected.';
|
||||
$string['notteachererror'] = 'You must be a teacher to use this feature.';
|
||||
|
Loading…
x
Reference in New Issue
Block a user