Commit 848b254d authored by jaapjansma's avatar jaapjansma
Browse files

Fixed issue with delayed action and condition checking.

parent cfd8dc13
Version 1.18 (not yet released)
============
* Fixed issue with delayed action and condition checking.
Version 1.17.2
============
......
......@@ -370,6 +370,14 @@
if ($action['name'] == $action_name) {
$actionClass = $actionProvider->getActionByName($action['type']);
$actionClass->getConfiguration()->fromArray($action['configuration']);
// Create a condition class for this action
if (!isset($action['condition_configuration']) || !is_array($action['condition_configuration'])) {
$action['condition_configuration'] = array();
}
$condition = \CRM_FormProcessor_Condition::getConditionClass($action['condition_configuration']);
$actionClass->setCondition($condition);
// Execute the action
$actionClass->execute($mappedParameters, $mappedConditionParameters, $conditionOutputBag);
}
......
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