-
Bug
-
Resolution: Done
-
Minor
-
4.2.0
-
-
MOODLE_402_STABLE
-
MOODLE_402_STABLE
-
Moodle App 4.2.0
Summary:
On the Course Downloads page, downloading an activity or a week causes a red bin icon to appear next to the activity and week, as well as the file size of the downloaded activity/week. Tapping the "Delete all" button should cause activity downloads within the module to be deleted, and the icons on the Course Download page revert to their original state, i.e. the red bin icon next to downloaded activities/weeks disappears and only a download cloud is present next to the activity/week, and there is no file size next to the activity/week.
The "Delete all" button appears to successfully delete the downloaded activities, but the file size and red bin icons next to the week/activity persist, and this is not expected behaviour.
See attached video: course_download_deleteall_not_working_as_expected.mp4
Steps to reproduce:
- Open a module in app v4.0.2.
- Go to the Course Downloads page.
- Download an activity/week or several activities/weeks.
- Observe that downloaded activities now have a red bin icon instead of the download cloud, and the file size is displayed next to them. Similar layout is observed next to the week containing the downloaded activity.
- Tap "Delete all".
- Observe the appearance of the icons next to the activity/activities and week(s) that you previously downloaded on the Course Downloads page.
Expected outcome:
Icons revert back to their pre-downloaded state and file sizes do not display next to activities/weeks once the downloads have been deleted.
Actual outcome:
The red bin icon and downloaded file size persist next to activities/weeks even after they have been deleted.