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

schedule_backup_cron skips course if not already present in mdl_backup_courses

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Won't Fix
    • Affects Version/s: 1.9.5
    • Fix Version/s: None
    • Component/s: Backup
    • Labels:
      None
    • Affected Branches:
      MOODLE_19_STABLE

      Description

      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 ..."

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: