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

Group timestamps showing for Assignments where team submission is not enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Development in progress
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.5, 2.7
    • Fix Version/s: FRONTEND
    • Component/s: Assignment
    • Labels:
    • Affected Branches:
      MOODLE_26_STABLE, MOODLE_27_STABLE

      Description

      When viewing submissions for an assignment where 'Students submit in groups' is set to 'No' the 'Last modified (submission)' field is showing the same timestamp when users belong to a group.

      Possible fix: in mod/assign/gradingtable.php modifying the function col_timesubmitted to have a clause for teamsubmissions appears to resolve the problem:

          public function col_timesubmitted(stdClass $row) {
              $o = '-';
       
              $group = false;
              $submission = false;
              if ($this->assignment->get_instance()->teamsubmission) {
                  $this->get_group_and_submission($row->id, $group, $submission, -1);
              }
              if ($group && $submission && $submission->timemodified) {
                  $o = userdate($submission->timemodified);
              } else if ($row->timesubmitted) {
                  $o = userdate($row->timesubmitted);
              }
       
              return $o;
          }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated: