From 46f53f9c69e54b3f47ddbb88972cdf4f3f011031 Mon Sep 17 00:00:00 2001 From: Jon Goldberg Date: Tue, 5 Dec 2023 11:33:53 -0500 Subject: [PATCH] SearchKit: Don't assume a comparison value when none exists --- .../Civi/Api4/Action/SearchDisplay/AbstractRunAction.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php b/ext/search_kit/Civi/Api4/Action/SearchDisplay/AbstractRunAction.php index 69acf8e3ff..75982ddf83 100644 --- 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; } -- 2.25.1