mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
Merge branch 'MDL-58539_master' of https://github.com/dmonllao/moodle
This commit is contained in:
commit
d4be750a7c
@ -58,7 +58,7 @@ class assign_feedback_editpdf extends assign_feedback_plugin {
|
||||
*/
|
||||
public function get_widget($userid, $grade, $readonly) {
|
||||
$attempt = -1;
|
||||
if ($grade) {
|
||||
if ($grade && isset($grade->attemptnumber)) {
|
||||
$attempt = $grade->attemptnumber;
|
||||
} else {
|
||||
$grade = $this->assignment->get_user_grade($userid, true);
|
||||
|
Loading…
x
Reference in New Issue
Block a user