-
Bug
-
Resolution: Fixed
-
Minor
-
4.2, 4.4
-
MOODLE_402_STABLE, MOODLE_404_STABLE
-
MOODLE_403_STABLE, MOODLE_404_STABLE
-
mdl-78080-403-split
-
mdl-78080-404-split
-
mdl-78080-main-split
-
I think the duplicate option has several issues:
- I think the function course_update_section() is supposed to take the unaltered section info as its second argument, and just the new data as its third. Passing the altered section info twice hasn't caused any issue I've noticed, but I don't think it's good practice. (Fix course_update_section params)
- Duplicating a section doesn't copy custom section options--this isn't an issue for the built in formats, but I'd guess most plug-in formats with custom section options will probably want them copied, so this may as well be done by default. (Copy custom section options)
- Section summary files don't seem to be copied. I've copied code for this from the Onetopic format file duplicate.php . (Copy section summary files)
- Activities deleted before the last cron run are copied. (Don't copy deleted activities)
- The duplicate option is shown on the General section, but doesn't function--I think it probably makes sense to leave this option off the General section. I don't think people are likely to need to copy the General section if it's being used as intended (for whole-course resources), and it would be a bit weird in one-section-per-page mode. Either way, though, something needs to be done here. (No duplicate option for section 0)
- It gets confused when sections are moved, and duplicates the wrong section. (Duplicate by section id, not num)
- has a non-specific relationship to
-
MDL-80505 Duplicating section should use backup-restore API correctly
- Open
- has been marked as being related by
-
MDL-81981 Duplicate an activity with a delegated section (like mod_subsection) should also duplicate the full subsection.
- Open
- is a regression caused by
-
MDL-40600 Add ability to duplicate a course section
- Closed