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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.8.6
    • 2.8.7, 2.9.1, 3.0.4
    • Set: Dataform
    • 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

            itamart Itamar Tzadok
            frankiekam Frankie Kam
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6/Jul/15