Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
3.3.5, 3.4.2, 3.5
-
MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE
-
MOODLE_33_STABLE, MOODLE_34_STABLE
-
MDL-61828-master -
Description
The array replace works recursively, but we always add a file in array index 0 and thus gets replaced.
I've also found a related issue whereby the tree structure does not contain enough detail which makes sense to fix at the same time.
I'll see if I can unit test the unit test content writer... but it's getting a bit meta.