-
Bug
-
Resolution: Fixed
-
Minor
-
3.3.5, 3.5.4, 3.6.2, 3.7, 3.8.9, 3.9.7
-
MOODLE_33_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE, MOODLE_37_STABLE, MOODLE_38_STABLE, MOODLE_39_STABLE
-
MOODLE_35_STABLE, MOODLE_36_STABLE
-
MDL-63263-Master -
DESCRIPTION
The recycle bin currently uses the General backup defaults. "Include users" is unchecked in the General backup defaults. An item is deleted from a course and goes to the course recycle bin. When restored, the user expects the course item to be restored along with any associated submissions/user data.
STEPS TO REPLICATE
1. Login to the site and go to Admin tools > Recycle bin. Ensure that course recycle bin is enabled.
2. Go to the General Backup Defaults page, then uncheck "Include users" and save changes
3. Create a quiz or assignment
4. As a student, submit an assignment or a quiz submission
5. As an admin or teacher, delete the quiz or assignment
6. Run SITEURL/admin/cron.php to expedite the deleted item showing up in the Recycle Bin
7. Access course recycle bin and restore the deleted item
8. View item restored in course and notice that no submission exists.
OBSERVED BEHAVIOR:
Restored item does not have user data/submissions
EXPECTED BEHAVIOR:
Any restored item from the recycle bin should have user data/submissions
- caused a regression
-
MDL-65218 Recycle bin is broken if backup_auto_storage is set to specified directory for automated backups (Regression of MDL-63263)
- Closed
- has a non-specific relationship to
-
MDL-65228 Create a new backup::MODE_RECYCLEBIN
- Open
- Testing discovered
-
MDL-68981 Recycle bin does not include user data if "General restore defaults > Include users" is No
- Closed