Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 1.9, 1.9.1
-
Fix Version/s: None
-
Component/s: Assignment
-
Labels:None
-
Environment:all
-
Affected Branches:MOODLE_19_STABLE
Description
The attached diff file solves the problem. See the discussion in the forum at the included link.
When I retrieve an advanced uploading assignment submission, there is a variable called numfiles, which remains zero no matter how many files are submitted.
Here's the code I'm using:
echo 'id '.$assignment->id.' assignment type '.$assignment->assignmenttype;
$sql = 'SELECT assignment, teacher, timemarked, grade, numfiles
FROM '.$CFG->prefix.'assignment_submissions
WHERE userid = \''.$USER->id.'\'
AND assignment = \''.$assignment->id.'\'';
if ($submission = get_record_sql($sql)) {
print_object($submission);
}
And here's the result:
id 2186 assignment type upload
stdClass Object
(
[assignment] => 2186
[teacher] => 5
[timemarked] => 1211913543
[grade] => 1
[numfiles] => 0
)
numfiles remains zero regardless of how many files the student has actually submitted.
Thanks for reporting this issue.
We have detected that this issue has been inactive for over a year has been recorded as affecting versions that are no longer supported.
If you believe that this issue is still relevant to current versions (2.1 and beyond), please comment on the issue. Issues left inactive for a further month will be closed.
Michael d;
lqjjLKA0p6