mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
When editing old outcomes when outcomes are switched off, just treat them like an ordinary scale item
This commit is contained in:
parent
f3b783f407
commit
9988d1b7a7
2 changed files with 2 additions and 2 deletions
|
@ -28,7 +28,7 @@ if ($mform->is_cancelled()) {
|
|||
|
||||
if ($item = get_record('grade_items', 'id', $id, 'courseid', $course->id)) {
|
||||
// redirect if outcomeid present
|
||||
if (!empty($item->outcomeid)) {
|
||||
if (!empty($item->outcomeid) && !empty($CFG->enableoutcomes)) {
|
||||
$url = $CFG->wwwroot.'/grade/edit/tree/outcome.php?id='.$id.'&courseid='.$courseid;
|
||||
redirect($gpr->add_url_params($url));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue