Phantom submission date in Upload & Review

Phantom submission date in Upload & Review

by Pablo Etcheverry -
Number of replies: 0
Picture of Core developers
Hi!

Some teachers complained about having found, in an U&R assignment, some "phantom submissions". This means that in the submissions screen some students appeared with a "timemodified" value, meaning that they had sent their files, but when teachers tried to grade them they found no file had been uploaded.
I found that this happens everytime a teacher tries to grade a non-existent submission, since in line 317 of U&R's assignment.class.php it reads:
if (!$submission = $this->get_submission($user->id, true)) { // Get one or make one

I'd like to know... is there a reason to CREATE a record in assignment_submissions table when this happens?

Cheers,

Pablo

P.S. Meanwhile, simply removing the optional parameter (the "true") made everything work fine.
Average of ratings: -