Fix determination of whether custom fields are in play to include range
authoreileen <emcnaughton@wikimedia.org>
Sun, 3 Nov 2019 04:39:19 +0000 (17:39 +1300)
committereileen <emcnaughton@wikimedia.org>
Sun, 3 Nov 2019 04:39:19 +0000 (17:39 +1300)
I've added in _high, _low as the new ones & also _from & _to as I'm having some transitional issues

CRM/Contact/BAO/Query.php

index ab90299b2d5a3615d6a4b5e1f0d435a033ee132e..685ae04a47dfd8058d1fc4d729b46df23bec1215 100644 (file)
@@ -651,7 +651,7 @@ class CRM_Contact_BAO_Query {
       if (empty($value[0])) {
         continue;
       }
-      $cfID = CRM_Core_BAO_CustomField::getKeyID(str_replace('_relative', '', $value[0]));
+      $cfID = CRM_Core_BAO_CustomField::getKeyID(str_replace(['_relative', '_low', '_high', '_to', '_high'], '', $value[0]));
       if ($cfID) {
         if (!array_key_exists($cfID, $this->_cfIDs)) {
           $this->_cfIDs[$cfID] = [];