When restoring a backed up course, attributes 'locked by dependencies' due to a setting on a previous screen are still locked after the user goes back to the previous screen and changes the original setting.
Steps to reproduce:
- Back up a course with activities.
- Click the 'restore' link next to a backup file.
- Click 'Continue'.
- Restore the course as a new course and click 'Continue'.
- Uncheck 'Include activities and resources' checkbox and click 'Next'.
- Notice the activities checkboxes are correctly replaced by 'locked by dependencies' icon and alt text.
- Click 'Previous' or hit your browser's 'back' button, we've tested both.
- Check 'Include activities and resources' checkbox and click 'Next'.
- Notice the activities are still, now incorrectly, replaced by 'locked by dependencies' icon and alt text.