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

Duplicate causes Fatal Error for modules that don't support FEATURE_BACKUP_MOODLE2

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 2.2
    • Fix Version/s: None
    • Component/s: Backup, Course
    • Labels:
    • Affected Branches:
      MOODLE_22_STABLE

      Description

      The duplicate button is displayed for all activities regardless of whether they support FEATURE_BACKUP_MOODLE2 or not, allowing a user (with valid permissions) to click on it and trigger a Fatal Error.

      Attached is a patch against course/lib.php that checks if the modules supports FEATURE_BACKUP_MOODLE2 when displaying the duplicate button.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              poltawski Dan Poltawski
              Reporter:
              jmlsteele Jody Steele
              Participants:
              Component watchers:
              Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Sujith Haridasan, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Ilya Tregubov, Sara Arjona (@sarjona)
              Votes:
              4 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: