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

Missing fields on submission object in view_summary() call

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.6.2
    • Fix Version/s: None
    • Component/s: Assignment
    • Labels:
      None
    • Affected Branches:
      MOODLE_36_STABLE

      Description

      In submission plugins, the view_summary() method is given a submission object, and it's implied in the documentation that this is a record from the assign_submission table. However, when the method is called from the grading table (for individual submissions) this is actually a constructed object which is missing a few of the fields from this table.

      In particular, status is available at the point the object is created, but isn't added to it. Also, the latest and groupid fields are missing (groupid is always 0 at that point).

      I'd expect the object passed to view_summary() to be a full submission record, or if the current behaviour is by design for it to be documented in the view_summary() method comments and dev docs.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              maherne Michael Aherne
              Participants:
              Component watchers:
              Damyon Wiese, Adrian Greeve, Mihail Geshoski, Peter Dias
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: