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

Question bank: if you have multiple pages of questions, and delete enough questions in one go so that it should display a single page, it errors

XMLWordPrintable

      I am deleting a lot of unused  questions.
       
      There have been several instances where there has been one than one page of questions, and I have deleted enough opaque questions that I should lose a page. 
       
      Expected
      If I delete enough questions, I should move from page 3 to page 2.
       
      Actual
      You seem to stay on the same page, which no longer exists because there isn't enough questions, and you get this error.

       

      The root cause of this error coming from:

      https://github.com/moodle/moodle/blob/main/question/classes/local/bank/view.php#L803
       

            khoand Khoa Nguyen Dang
            vuvanhieu143 Hieu Vu
            Anupama Sarjoshi Anupama Sarjoshi
            Tim Hunt Tim Hunt
            Ron Carl Alfon Yu Ron Carl Alfon Yu
            Votes:
            0 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 3 hours, 26 minutes
                3h 26m

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