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

schedule_backup_cron skips course if not already present in mdl_backup_courses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 1.9.5
    • Backup
    • None
    • MOODLE_19_STABLE

      When doing automated course backups, unless the course already has a row in the mdl_backup_courses table, the schedule_backup_cron inserts a row, but with a nextstarttime value of 0. This will cause it to fail on the following test:
      if (!$skipped && $backup_course->nextstarttime > 0 && $backup_course->nextstarttime < $now)

      { ... }

      Suggest that the new mdl_backup_courses row is inserted with a nextstarttime value of 1, or change the test to "nextstarttime >= 0 ..."

            stronk7 Eloy Lafuente (stronk7)
            woolardfa@appstate.edu Fred Woolard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

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