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

duplicate activity from edit dropdown fails silently

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.4.3, 3.5.5
    • 3.5.6, 3.6.4
    • Backup, Course

    Description

      Duplicating an activity in a course fails silently if backup_import_<foo> is disabled.

      When the backup_controller constructor calls $this->apply_defaults, the "included" setting for the activity gets turned off if the relevant config setting is disabled. The controller is using "MODE_IMPORT", so this is not surprising.

      The duplicate function should work correctly no matter how these settings are configured.

      I suspect the best answer is to define an appropriate new mode that does not override anything.

      Attachments

        Issue Links

          Activity

            People

              damyon Damyon Wiese
              nwpotago Nick Phillips
              David Monllaó David Monllaó
              CiBoT CiBoT
              Adrian Greeve, David Woloszyn, Huong Nguyen, Jake Dallimore, Michael Hawkins, Stevani Andolo, Amaia Anabitarte, Bas Brands, Carlos Escobedo, Laurent David, Raquel Ortega, Sabina Abellan, Sara Arjona (@sarjona)
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                13/May/19

                Time Tracking

                  Estimated:
                  Original Estimate - 1 day, 4 hours, 30 minutes
                  1d 4h 30m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 30 minutes Time Not Required
                  30m