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:
e352275
)
CRM-20509: CiviReport: ACL limits in WHERE were too restrictive.
author
Allen Shaw
<allen@JoineryHQ.com>
Mon, 10 Jul 2017 16:21:10 +0000
(11:21 -0500)
committer
Allen Shaw
<allen@JoineryHQ.com>
Mon, 10 Jul 2017 16:21:10 +0000
(11:21 -0500)
CRM/Core/DAO.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Core/DAO.php
b/CRM/Core/DAO.php
index b1bf5ba765e53429e82b3114f722565a21e23fab..64a12572f0940ad57272f92b18500007d4e6b28d 100644
(file)
--- a/
CRM/Core/DAO.php
+++ b/
CRM/Core/DAO.php
@@
-2527,7
+2527,7
@@
SELECT contact_id
foreach ((array) $bao->addSelectWhereClause() as $field => $vals) {
$clauses[$field] = NULL;
if ($vals) {
- $clauses[$field] = "
`$tableAlias`.`$field` " . implode(" AND `$tableAlias`.`$field` ", (array) $vals)
;
+ $clauses[$field] = "
(`$tableAlias`.`$field` IS NULL OR (`$tableAlias`.`$field` " . implode(" AND `$tableAlias`.`$field` ", (array) $vals) . '))'
;
}
}
return $clauses;