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:
407ce0b
)
conditional operator precedence fix
author
benjamin
<benjamin>
Tue, 9 Jan 2024 21:44:18 +0000
(21:44 +0000)
committer
benjamin
<benjamin>
Tue, 9 Jan 2024 21:44:18 +0000
(21:44 +0000)
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
patch
|
blob
|
blame
|
history
diff --git
a/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
b/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
index 75982ddf83fbceaade81e6e69f7fea73216f63d2..f040724ba0424da1b4ce311c650ed3c9dce3b568 100644
(file)
--- a/
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
+++ b/
ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php
@@
-651,7
+651,7
@@
abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction {
return \CRM_Core_Permission::check($permissions) == ($op !== '!=');
}
// Convert the conditional value of 'current_domain' into an actual value that filterCompare can work with
- if (
$item['condition'][2] ?? ''
=== 'current_domain') {
+ if (
($item['condition'][2] ?? '')
=== 'current_domain') {
if (str_ends_with($item['condition'][0], ':label') !== FALSE) {
$item['condition'][2] = \CRM_Core_BAO_Domain::getDomain()->name;
}