-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
4.4.4, 4.5.1
-
MOODLE_404_STABLE, MOODLE_405_STABLE
When you switch your selected language while in the manage backup files page within a course and click on either the save or cancel button, you are redirected to $CFG->wwwroot/backup/
The reason for this is that the hidden returnurl value in the form is being stripped on language change and so when the form is posted the redirect fails.
Steps to produce:
- Create a new course and enter it
- In the course management tabs, Select More -> Reuse and then choose backup from the resultant page
- Click jump to end to complete the backup
- Click continue to get to the Restore page
- Click on the Manage course backups button
- when presented with the course backup files change your language in the Profile dropdown menu -> languages option
- Clicking either Cancel or save will bring you to the wrong place.
If you inspect the hidden form elements it looks like the first screenshot and after the language change it then looks like the second one.
It should have the backup/restrorefile.php with the contextid being passed as a parameter.