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

duplicate activity from edit dropdown fails silently

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.4.3, 3.5.5
    • Fix Version/s: 3.5.6, 3.6.4
    • Component/s: Backup, Course
    • Labels:

      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

              • Assignee:
                damyon Damyon Wiese
                Reporter:
                nwpotago Nick Phillips
                Integrator:
                David Monllaó
                Tester:
                CiBoT
                Participants:
                Component watchers:
                Adrian Greeve, Jake Dallimore, Mathew May, Mihail Geshoski, Peter Dias, Amaia Anabitarte, Carlos Escobedo, Ferran Recio, Sara Arjona (@sarjona), Víctor Déniz Falcón
              • Votes:
                1 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  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