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

mod_quiz: Fix timecreated is 0 when creating a quiz activity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • 3.8.5, 3.9.2
    • 3.8.3, 3.9, 3.10
    • Quiz
    • MOODLE_310_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
    • MOODLE_38_STABLE, MOODLE_39_STABLE
    • Hide

      Requires direct access to the DB to verify. (Or, you could decide that the unit test is enough.)

      1. Create a course.
      2. Turn editing on.
      3. Add a Quiz activity.
      4. Verify that the timecreated value in the mdl_quiz table is set to something other than zero.
      Show
      Requires direct access to the DB to verify. (Or, you could decide that the unit test is enough.) Create a course. Turn editing on. Add a Quiz activity. Verify that the timecreated value in the mdl_quiz table is set to something other than zero.

    Description

      When creating a quiz activity, the timecreated field on the mdl_quiz table does not get a timestamp. Instead, it always get a value of 0.

      SELECT id, name, timecreated, timemodified FROM mdl_quiz;
      id: 1
      name: quiz1
      timecreated: 0
      timemodified: 1594382713

      Expected result: The timecreated field should be populated with the correct value/timestamp.

      Attachments

        Activity

          People

            timhunt Tim Hunt
            jebarvia Joshua Ebarvia
            Joshua Ebarvia Joshua Ebarvia
            Andrew Lyons Andrew Lyons
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 25 minutes
                25m

                Clockify

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