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

Group timestamps showing for Assignments where team submission is not enabled

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • None
    • 2.6.5, 2.7
    • Assignment
    • MOODLE_26_STABLE, MOODLE_27_STABLE

      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;
          }
      

            Unassigned Unassigned
            supton.overtsoftware Steve Upton
            Simey Lameze Simey Lameze
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

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