-
Improvement
-
Resolution: Unresolved
-
Minor
-
None
-
4.5
-
MOODLE_405_STABLE
This issue is part of the course hierarch project.
Issue goals
Once mod_subsection is incorporated into core, some activities will be able to use delegated sections. When one of these activities is duplicated, the delegated section should be duplicated as well.
This issue may be discarded depending on the results of MDL-80191. In theory, having a proper backup and restore of the delegated section should also provide the logic for the duplication. However, there are several aspects to take into consideration:
- Evaluate the possibility of an async duplication of the section to prevent timeouts.
- Duplicating a normal activity is not a long task and can be done in a single Ajax request from the course page. However, it is possible that duplicating a mod_subsection require som extra time and produces a timeout. This may require having the option of a non-ajax duplication.
- The duplicate section method should be added to the formatactions API from
MDL-80187.