-
Bug
-
Resolution: Fixed
-
Minor
-
3.0.6, 3.1.2, 3.2.1
-
MOODLE_30_STABLE, MOODLE_31_STABLE, MOODLE_32_STABLE
-
MOODLE_32_STABLE
-
MDL-56324-master -
To reproduce:
- Create an assignment activity with file upload submissions enabled.
- As a student, submit a PDF with at least 4 pages.
- As a teacher, grade the submission and add comments to pages 1 and 2.
- Using the 'Search comments' tool, jump to a comment on page 2.
- Using the 'Next page' button, navigate to page 3. This will require 2 clicks because the navigation is not aware that we have moved away from page 1.
- Using the 'Search comments' tool, jump to a comment on page 1.
- Using the 'Next page' button, navigate to the next page (should be page 2, actually page 4 because the navigation still 'thinks' we are on page 3).
- Using the 'Search comments' tool, jump to a comment on page 2.
- Using the 'Previous page' button, navigate to the previous page (should be page 1, actually page 3).
The converse problem also exists, so following on from the above steps: - Using the 'Previous page' button again, navigate back to page 1. This should now work correctly in 2 clicks because we used the page navigation last. However ...
- Using the 'Search comments' tool, select a comment on page 2. This will now fail because the tool isn't aware that we have navigated away from page 2, therefore change_page() isn't called and the comment node can't be found (as indicated in the console log).