dev/core#3164 : Report Filter Statistics don't show filters with value of "0"
authorAllen Shaw <allen@JoineryHQ.com>
Wed, 13 Apr 2022 23:24:21 +0000 (18:24 -0500)
committerAllen Shaw <allen@JoineryHQ.com>
Wed, 13 Apr 2022 23:24:21 +0000 (18:24 -0500)
CRM/Report/Form.php

index 9793e13e9d295a71c37b4b1902ce67cf5035f93e..c27e48faeadb0b179c0d666953147b49c6d3575e 100644 (file)
@@ -3510,7 +3510,7 @@ WHERE cg.extends IN ('" . implode("','", $this->_customGroupExtends) . "') AND
                 $value = CRM_Utils_Array::value($op, $pair) . " " .
                   CRM_Utils_Array::value($val, $field['options'], $val);
               }
-              elseif ($val) {
+              elseif ($val || $val == '0') {
                 $value = CRM_Utils_Array::value($op, $pair) . " " . $val;
               }
             }