Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-30724

assignment_count_real_submissions() assumes all rows with a positive timestamp are "real submissions" when this is not true for upload assignment types

XMLWordPrintable

    • MOODLE_23_STABLE
    • MOODLE_21_STABLE, MOODLE_22_STABLE
    • m_MDL-30724_count_real_submissions_eloy_suggests
    • Hide
      1. Login as Admin
      2. Create a new assignment of type "advanced file upload"
        1. Click "Upload file"
        2. Add some files
        3. "Save changes"
        4. Look at the links under "Settings > Assignment administration" and observe that there is one that reads "No attempts have been made on this assignment"
        5. Click "Send for marking"
        6. Click "Continue"
        7. Look at the links under "Settings > Assignment administration" and observe that there is one that reads "View 1 submitted assignments"
      3. Create a new assignment of type "simple file upload"
        1. Click "Upload a file"
        2. Click "Save changes" without adding any files
        3. Look at the links under "Settings > Assignment administration" and observe that there is one that reads "No attempts have been made on this assignment"
        4. Click "Upload a file" again
        5. Add a file
        6. Click "Save changes"
        7. Look at the links under "Settings > Assignment administration" and observe that there is one that reads "View 1 submitted assignments"
      Show
      Login as Admin Create a new assignment of type "advanced file upload" Click "Upload file" Add some files "Save changes" Look at the links under "Settings > Assignment administration" and observe that there is one that reads "No attempts have been made on this assignment" Click "Send for marking" Click "Continue" Look at the links under "Settings > Assignment administration" and observe that there is one that reads "View 1 submitted assignments" Create a new assignment of type "simple file upload" Click "Upload a file" Click "Save changes" without adding any files Look at the links under "Settings > Assignment administration" and observe that there is one that reads "No attempts have been made on this assignment" Click "Upload a file" again Add a file Click "Save changes" Look at the links under "Settings > Assignment administration" and observe that there is one that reads "View 1 submitted assignments"

      The Advanced uploading and single file upload assignments both will create an entry in the assignment_submissions table as placeholders. The assignment_count_real_submissions() function counts these as valid submissions when it should not.

            moodle.com Moodle HQ
            gerry Gerard Caulfield
            Andrew Davis Andrew Davis
            Sam Hemelryk Sam Hemelryk
            Michael de Raadt Michael de Raadt
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.