Skip to content

Commit

Permalink
Merge pull request #24052 from colemanw/fixChainDollarSignBug
Browse files Browse the repository at this point in the history
APIv4 - Allow values to start with a dollar sign in chaining
  • Loading branch information
colemanw authored Jul 26, 2022
2 parents 3ad759f + 93af9ed commit be5f0b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Civi/Api4/Provider/ActionObjectProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit be5f0b4

Please sign in to comment.