Commit ec9244d8 authored by jaapjansma's avatar jaapjansma
Browse files

fixed issue with activity tokens and form processor

parent 4ec05e61
......@@ -31,8 +31,13 @@ class CRM_ActivityTokens_Tokens {
}
foreach($cids as $cid) {
$activity_id = false;
if (isset($values[$cid]['extra_data']['activity']['id'])) {
$activity_id = $values[$cid]['extra_data']['activity']['id'];
} elseif (isset($values['cid']['activity_id'])) {
$activity_id = $values['cid']['activity_id'];
}
if ($activity_id) {
$activity = $this->getActivity($activity_id);
foreach ($activity as $field => $value) {
if (stripos($field, 'custom_') === 0) {
......
......@@ -13,8 +13,8 @@
<url desc="Documentation">https://lab.civicrm.org/extensions/activitytokens/README.md</url>
<url desc="Licensing">http://www.gnu.org/licenses/agpl-3.0.html</url>
</urls>
<releaseDate>2020-07-06</releaseDate>
<version>1.6</version>
<releaseDate>2021-03-09</releaseDate>
<version>1.7</version>
<develStage>stable</develStage>
<compatibility>
<ver>5.0</ver>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment