projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a247fb2
)
Fix determination of whether custom fields are in play to include range
author
eileen
<emcnaughton@wikimedia.org>
Sun, 3 Nov 2019 04:39:19 +0000
(17:39 +1300)
committer
eileen
<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
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Contact/BAO/Query.php
b/CRM/Contact/BAO/Query.php
index ab90299b2d5a3615d6a4b5e1f0d435a033ee132e..685ae04a47dfd8058d1fc4d729b46df23bec1215 100644
(file)
--- a/
CRM/Contact/BAO/Query.php
+++ b/
CRM/Contact/BAO/Query.php
@@
-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] = [];