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

Course Completion 'timestarted' broken - only written when timecompleted is written

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Not a bug
    • Affects Version/s: 2.0.8, 2.1.5, 2.2.2
    • Fix Version/s: None
    • Component/s: Course completion
    • Labels:
    • Affected Branches:
      MOODLE_20_STABLE, MOODLE_21_STABLE, MOODLE_22_STABLE

      Description

      The easiest way to show this is by creating any activity with a required completion grade and failing it. I would expect that the timestarted is (at least) recorded when they fail, although it should be recorded when they enrol as the "start on enrolment" option suggests. Reproduce as follows...

      • Create a course with completion on and completion tracking set to start on enrolement
      • add an activity with a passing grade in the grade book e.g. a simple quiz
      • enrol a user
      • Run the completion cron
      • check the values in the mdl_course_completions table for that user
      • will have a timeenroled value but nothing for timestarted or timecompleted
      • go through the activity as that user and fail it
      • re-run the completion cron script
      • check the mdl_course_completions table - no change
      • go through the activity as that user and pass it
      • re-run the completion cron script
      • check the mdl_course_completions table - timestarted and timecompleted will now be set to the same value.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              sry_not4sale Aaron Barnes
              Reporter:
              howardsmiller Howard Miller
              Participants:
              Component watchers:
              Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: