| Línea 411... |
Línea 411... |
| 411 |
// - the assessedfieldname for Ratings there; or
|
411 |
// - the assessedfieldname for Ratings there; or
|
| 412 |
// - the gradefieldname for Ratings there.
|
412 |
// - the gradefieldname for Ratings there.
|
| 413 |
if (empty($data[$assessedfieldname]) && empty($data[$gradefieldname])) {
|
413 |
if (empty($data[$assessedfieldname]) && empty($data[$gradefieldname])) {
|
| 414 |
// There are no grades set therefore completion is not allowed.
|
414 |
// There are no grades set therefore completion is not allowed.
|
| 415 |
if (isset($data['completiongradeitemnumber']) && $data['completiongradeitemnumber'] == (string) $itemnumber) {
|
415 |
if (isset($data['completiongradeitemnumber']) && $data['completiongradeitemnumber'] == (string) $itemnumber) {
|
| 416 |
$errors['completiongradeitemnumber'] = get_string(
|
416 |
$errors['completionpassgrade'] = get_string(
|
| 417 |
'badcompletiongradeitemnumber',
|
417 |
'badcompletiongradeitemnumber',
|
| 418 |
'completion',
|
418 |
'completion',
|
| 419 |
get_string("grade_{$itemname}_name", $component)
|
419 |
get_string("grade_{$itemname}_name", $component)
|
| 420 |
);
|
420 |
);
|
| 421 |
}
|
421 |
}
|