From 93af9edbe5f59c4853ce125f28a315b15deff298 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Tue, 26 Jul 2022 12:42:52 -0400 Subject: [PATCH] APIv4 - Allow values to start with a dollar sign in chaining Fixes dev/core#3754 --- Civi/Api4/Provider/ActionObjectProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Civi/Api4/Provider/ActionObjectProvider.php b/Civi/Api4/Provider/ActionObjectProvider.php index 4d6dda02df31..2a48d3165d10 100644 --- a/Civi/Api4/Provider/ActionObjectProvider.php +++ b/Civi/Api4/Provider/ActionObjectProvider.php @@ -118,7 +118,7 @@ protected function resolveChainLinks(&$val, $result) { } elseif (is_string($val) && strlen($val) > 1 && substr($val, 0, 1) === '$') { $key = substr($val, 1); - $val = $result[$key] ?? \CRM_Utils_Array::pathGet($result, explode('.', $key)); + $val = $result[$key] ?? \CRM_Utils_Array::pathGet($result, explode('.', $key)) ?? $val; } }