Skip to content
Snippets Groups Projects
Unverified Commit 7dd45cde authored by colemanw's avatar colemanw Committed by GitHub
Browse files

Merge pull request #31782 from civicrm/5.82

Merge 5.82 -> master
parents 804ab7cd 73acbeb9
Branches
Tags
No related merge requests found
......@@ -899,8 +899,8 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction {
if (!empty($link['join'])) {
$link['prefix'] = $link['join'] . '.';
}
// Get path from action
if (!empty($link['action'])) {
// Get path from action for non-task links
if (!empty($link['action']) && empty($link['task'])) {
$getLinks = civicrm_api4($entity, 'getLinks', [
'checkPermissions' => FALSE,
'where' => [
......@@ -917,6 +917,7 @@ abstract class AbstractRunAction extends \Civi\Api4\Generic\AbstractAction {
$link['path'] = str_replace('[', '[' . $link['prefix'], $link['path']);
}
}
// Process task links
elseif (!$link['path'] && !empty($link['task'])) {
$task = $this->getTask($link['task']);
$link['conditions'] = $task['conditions'] ?? [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment