Moodle

upload (advanced upload) assignment does not properly update the number of submitted files

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: 1.9, 1.9.1
  • Fix Version/s: None
  • Component/s: Assignment
  • Labels:
    None
  • Environment:
    all

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.

Activity

Hide
Michael de Raadt added a comment -

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

Show
Michael de Raadt added a comment - 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
Hide
Michael de Raadt added a comment -

I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

Show
Michael de Raadt added a comment - I'm closing this issue as it appears to have become inactive and is probably not relevant to a current supported version. If you are encountering this problem or one similar, please launch a new issue.

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: