Affects Version/s: 2.5.8, 2.7.2
Fix Version/s: None
Component/s: Conditional activities
Affected Branches:MOODLE_25_STABLE, MOODLE_27_STABLE
— Description/problem —
If an activity/resource (A), that is a condition for the release of another resource/activity (B) is deleted, the teacher should be notified that another resource/activity is dependent on the deleted resource/activity.
— Replication steps —
1. Create assignment (A)
2. Create second assignment (B) that has Restrict Access set that students must achieve 90% on assignment (A) before gaining access to assignment (B)
3. Confirm that Restrict Access restriction info is listed below assignment (B) on course page.
4. Delete assignment (A) from course page.
5. Confirm on course page that under assignment (B) that the restriction info now says, "Not available unless: You achieve a required score in (missing activity)"
— What Actually Happens —
When teacher deletes the item that another item's availability is dependent on, no message appears during the deletion process to inform the user of this dependency.
— What Expected —
When user deletes item, in the confirmation popup message ("Are you sure that you want to delete..."), it should list what other items are depending on this item. This would inform the user what items they need to update.
In my opinion, the teacher would still be able to delete the item (as is its current behavior) but the Restrict Access on the other item would then be deleted/removed (instead of current behavior of listing "missing item"). With the current behavior, if a teacher doesn't update/remove the Restrict Access info themselves from the other item (B), then students would not be able to access the item. I understand others may think the reverse should happen (the current behavior of restrict access with missing item info) so that students don't gain access to an item before the teacher makes another update. However, if a teacher were to be notified when deleting an item that other items depend on it, that would inform/remind them that the other item would then be available (if no other restrictions were in place).