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

Assign creates a new empty submission when you view submission page

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 2.8
    • Fix Version/s: None
    • Component/s: Assignment
    • Testing Instructions:
      Hide

      Before:
      1. Create an assignment.
      2. Save it.
      3. View it.
      4. Check in DB that a new assign_submission record was added with either your user id or group id marked as 'status = new'

      AFTER:
      1-4 the same, but no submission is added.

      Show
      Before: 1. Create an assignment. 2. Save it. 3. View it. 4. Check in DB that a new assign_submission record was added with either your user id or group id marked as 'status = new' AFTER: 1-4 the same, but no submission is added.
    • Affected Branches:
      MOODLE_28_STABLE

      Description

      I have found a bug that makes has_submission_or_grade function break.

      When you create an assignment and view a submission page, a new submission is created with your User ID as an owner (or group ID, e.g. 0). This bug might have implications within other functions because it makes the assignment think that there is a submission while you did not create any.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                1 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: