Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-68981

Recycle bin does not include user data if "General restore defaults > Include users" is No

XMLWordPrintable

    • 6
    • Team Hedgehog Sprint 1.1, Team Hedgehog Sprint 1.2

      This was suppose to be fixed in MDL-63263 but the testing did not include how it interacts with the "General restore defaults" options. It only tested working with "General backup defaults"

      DESCRIPTION
      The recycle bin currently uses the General restore defaults. "Include users" is unchecked in the General restore 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 restore 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

        1. behat.png
          behat.png
          80 kB
        2. category_bin_test.php.png
          category_bin_test.php.png
          53 kB
        3. course_bin_test.php.png
          course_bin_test.php.png
          53 kB

            huongn@moodle.com Huong Nguyen
            rex Rex Lorenzo
            Stevani Andolo Stevani Andolo
            Jun Pataleta Jun Pataleta
            CiBoT CiBoT
            Votes:
            12 Vote for this issue
            Watchers:
            16 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 1 week, 3 days, 35 minutes
                1w 3d 35m

                  Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.