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

Time field search criteria is-empty and not-empty return all entries.

    XMLWordPrintable

    Details

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

      Description

      In a filter or in an advanced search, a search on a Time type field with the "IS EMPTY" and "NOT EMPTY" compound operators do not output the expected results.

      For example, assuming that DateOfUpdate is a Time field, the following search criteria


      The expected result here is only entries with empty DateOfUpdates to be displayed.
      However the search retrieves entries where the DateOfUpdate is both empty and non-empty.


      The expected result here is only entries with non-empty DateOfUpdates to be displayed.
      However the search retrieves entries where the DateOfUpdate is both empty and non-empty.

      Reference: https://moodle.org/mod/forum/discuss.php?d=316873

        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