-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3.1.2
-
None
-
MOODLE_31_STABLE
The first time the search comments list is displayed it shows all comments created thus far. However, any comments created after that point will be missing from the list until the page is reloaded (or the editor re-initialised). Other strange behaviour also results.
To reproduce:
- Create an assignment activity with file upload submissions enabled.
- As a student, submit a PDF with at least 2 pages.
- As a teacher, grade the submission and add a couple of comments to page 1.
- Click the 'Search comments' button and observe that both comment are listed.
- Close the dialogue by either selecting a comment or clicking the close button.
- Add a third comment to the same page.
- Invoke the 'Search comments' tool again and observe that the third comment is missing.
- Close the dialogue again (by either method) and then navigate to page 2 using the page navigation.
- Use the 'Search comments' tool to select a comment.
- Observe that you are returned to page 1, but it now appears to contain only 2 comments.
- Use the page navigation to navigate to page 2 and then back to page 1.
- Observe that page 1 now appears to contain 3 comments again.
- Attempting to select a comment from the 'Search comments' list again at this point will often result in failure to locate and focus the comment node.