dev/core#1867 Ensure that the qill matches the filter when no time is supplied
authorSeamus Lee <seamuslee001@gmail.com>
Mon, 13 Jul 2020 22:19:48 +0000 (08:19 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Mon, 13 Jul 2020 22:22:55 +0000 (08:22 +1000)
CRM/Report/Form.php

index 3a56f8fdca57363b956fb622c4b1964f5a7ed73d..2bd8d4d5069bbc8019b1c12d65f0594864c9ea5e 100644 (file)
@@ -3310,7 +3310,10 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
             if (!empty($this->_params["{$fieldName}_relative"])) {
               list($from, $to) = CRM_Utils_Date::getFromTo($this->_params["{$fieldName}_relative"], NULL, NULL);
             }
-
+            if (strlen($to) === 10) {
+              // If we just have the date we assume the end of that day.
+              $to .= ' 23:59:59';
+            }
             if ($from || $to) {
               if ($from) {
                 $from = date('l j F Y, g:iA', strtotime($from));