Afform - Fix date range filters for search displays
authorColeman Watts <coleman@civicrm.org>
Sat, 3 Sep 2022 02:38:10 +0000 (22:38 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 3 Sep 2022 02:38:10 +0000 (22:38 -0400)
Fixes dev/core#3690

ext/search_kit/ang/crmSearchDisplay/traits/searchDisplayBaseTrait.service.js

index 9f4a63c33ab40b5bc01f7140eeb2e59bf5299581..cdb572b99854d82eb27a65e1d5b4d336a0bd9f2e 100644 (file)
@@ -96,7 +96,7 @@
 
       getAfformFilters: function() {
         return _.pick(this.afFieldset ? this.afFieldset.getFieldData() : {}, function(val) {
-          return val !== null && (_.includes(['boolean', 'number'], typeof val) || val.length);
+          return val !== null && (_.includes(['boolean', 'number', 'object'], typeof val) || val.length);
         });
       },