MDL-36655: Assignment - do not add empty group to grading form when there is only one student
This commit is contained in:
@@ -3050,7 +3050,9 @@ class assign {
|
||||
if (!$last){
|
||||
$buttonarray[] = $mform->createElement('submit', 'nosaveandnext', get_string('nosavebutnext', 'assign'));
|
||||
}
|
||||
$mform->addGroup($buttonarray, 'navar', '', array(' '), false);
|
||||
if (!empty($buttonarray)) {
|
||||
$mform->addGroup($buttonarray, 'navar', '', array(' '), false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user