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

Forum advanced search doesn't respect the 'Choose which forums to search' setting

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create two forums A and B.
      2. Create a discussion and some posts in both forums A and B. Include words that are unique for each forum.
      3. Access the forum advanced search form.
      4. Enter a search term unique in Forum A.
      5. Select Forum A from the "Choose which forums to search" selector
      6. Press "Search forums".
        • Confirm that the results only show the posts in Forum A that contain the search term.
      7. Enter a search term unique in Forum B.
      8. Select Forum B from the "Choose which forums to search" selector
      9. Press "Search forums".
        • Confirm that the results only show the posts in Forum B that contain the search term.
      10. Enter a search term that is common to both forums A and B.
      11. Select "All forums" from the "Choose which forums to search" selector
      12. Press "Search forums".
        • Confirm that relevant results from both forums A and B are shown.
      13. Look at the HTML of the advanced search form. Verify that the forum selector has the name attribute set to "forumid".
      14. Look at the HTML of the advanced search form. Verify that the form tag has the "action" attribute set to the "mod/forum/search.php" URL.
      Show
      Create two forums A and B. Create a discussion and some posts in both forums A and B. Include words that are unique for each forum. Access the forum advanced search form. Enter a search term unique in Forum A. Select Forum A from the "Choose which forums to search" selector Press "Search forums". Confirm that the results only show the posts in Forum A that contain the search term. Enter a search term unique in Forum B. Select Forum B from the "Choose which forums to search" selector Press "Search forums". Confirm that the results only show the posts in Forum B that contain the search term. Enter a search term that is common to both forums A and B. Select "All forums" from the "Choose which forums to search" selector Press "Search forums". Confirm that relevant results from both forums A and B are shown. Look at the HTML of the advanced search form. Verify that the forum selector has the name attribute set to "forumid". Look at the HTML of the advanced search form. Verify that the form tag has the "action" attribute set to the "mod/forum/search.php" URL.
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_32_STABLE
    • Pull Master Branch:
      wip_MDL-57590_master_forum_search

      Description

      As noticed by David Mudrák (@mudrd8mz) on moodle.org and confirmed on learn.moodle.net:

      To reproduce: Enter a common word in the advanced search form and specify which forum to search.

      Expected result: Search results are posts from the specified forum only.

      Actual result: Search results are posts from several forums.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                2 Vote for this issue
                Watchers:
                9 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  13/Mar/17