-
Improvement
-
Resolution: Fixed
-
Minor
-
Future Dev
When duplicating an activity (such as a label) inside a course, the files record for attached files is duplicated but the timestamps for the file are not updated, even though the context for the file has changed. This is even more misleading because the directory created for the new context DOES have a new timestamp, when they should be in lockstep, as the records were both created at the same time.
Files table after a video label duplication:
id | contextid | filename | timecreated | timemodified
|
-------+-----------+-------------------------+-------------+--------------
|
20621 | 263 | . | 1616718908 | 1616718908 |
20620 | 263 | JSONpost.mp4 | 1616645767 | 1616645773 |
...
|
20593 | 257 | . | 1616645767 | 1616645773 |
20592 | 257 | JSONpost.mp4 | 1616645767 | 1616645773 |
- caused a regression
-
MDL-74988 Random phpunit failure "test_upgrade_fix_file_timestamps"
-
- Closed
-