Uploaded image for project: 'Plugins'
  1. Plugins
  2. CONTRIB-5822

Search value of select field is case-sensitive and as such inconsistent with the search value of a text field which is not.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.6, 2.9
    • Fix Version/s: 2.8.7, 2.9.1, 3.0.4
    • Component/s: Set: Dataform
    • Labels:
      None

      Description

      I have a field of type Selection named "Point Of Use":

      If I create an Advanced Filter to search the "Point Of Use" field with these settings (observe the "HQ" in UPPERCASE):

      the result is:

      However, if I changed the search text to lowercase as in:

      the result becomes a mish-mash of:

      This does not happen (the mish-mash) if field "Point Of Use" were a Text field.
      IMHO, this 'inconsistency' could be addressed by at least two ways.
      (1) For a Selection field, the logic could be to use the function strtolower() at the moment of comparions. I.e.,
      Compare strtolower(search text string) with strtolower(value of the "Point Of Use" field's content)
      or
      (2) Provide a "Search is case sensitive" checkbox if the user wants to enforce a case-sensitive search on searchable fields. As in the mock-up image below:

      reference: https://moodle.org/mod/forum/discuss.php?d=316460

      Cheers
      Frankie Kam

        Attachments

          Activity

            People

            Assignee:
            itamart Itamar Tzadok
            Reporter:
            frankiekam Frankie Kam
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              6/Jul/15