mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
MDL-36655: Assignment - do not add empty group to grading form when there is only one student
This commit is contained in:
parent
e7468fb2ed
commit
f3027e87fe
@ -3966,7 +3966,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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user