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

Searching for glossary items using only one letter displays all of the glossary entries

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.4.4, 3.5.1, 3.6
    • Fix Version/s: 3.4.5, 3.5.2
    • Component/s: Glossary
    • Labels:
    • Testing Instructions:
      Hide
      1. Log in as Admin.
      2. Create a Course.
      3. Create a Glossary in the Course.
      4. Add at least one entry that doesn't contain the letter 'z' in the name or definition.
      5. Enter 'z' in the search box and perform a search.
        • make sure no results are returned.

      Note for the tester: Glossary content can contain html syntax which is not visible to the users. This means when you search for something like "p", even if the "p" letter is not present in the context but a "<p>" tag is which is not visible to the user, the search will return results.

      Show
      Log in as Admin. Create a Course. Create a Glossary in the Course. Add at least one entry that doesn't contain the letter 'z' in the name or definition. Enter 'z' in the search box and perform a search. make sure no results are returned . Note for the tester: Glossary content can contain html syntax which is not visible to the users. This means when you search for something like "p", even if the "p" letter is not present in the context but a "<p>" tag is which is not visible to the user, the search will return results.
    • Affected Branches:
      MOODLE_33_STABLE, MOODLE_34_STABLE, MOODLE_35_STABLE, MOODLE_36_STABLE
    • Fixed Branches:
      MOODLE_34_STABLE, MOODLE_35_STABLE
    • Pull 3.5 Branch:
    • Pull Master Branch:
      MDL-61839-master

      Description

      To replicate:

      1. Create a glossary in a course.
      2. Add at least one entry that doesn't contain the letter 'z' in the name or definition.
      3. Enter 'z' in the search box and perform a search.
      4. Expected: No results will be returned.
      5. Actual: All results are being returned.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Fix Release Date:
                10/Sep/18

                Time Tracking

                Estimated:
                Original Estimate - 0 minutes
                0m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 8 minutes
                8m