Skip to content

Commit

Permalink
fix(BusinessMap) use Module selected in record to evaluate condition …
Browse files Browse the repository at this point in the history
…expression if no module is given as parameter
  • Loading branch information
joebordes committed Dec 14, 2021
1 parent 010ac41 commit b3bab1e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion modules/cbMap/processmap/ConditionExpression.php
Expand Up @@ -82,7 +82,12 @@ public function processMap($arguments) {
$entity->setData(array_merge($entity->data, $arguments[0]));
}
} else {
$inModule = empty($arguments[0]['module']) ? vtlib_purify($_REQUEST['module']) : $arguments[0]['module'];
if (empty($arguments[0]['module']) && empty($_REQUEST['module'])) {
$mapFields = $this->getMap();
$inModule = $mapFields->column_fields['targetname'];
} else {
$inModule = empty($arguments[0]['module']) ? vtlib_purify($_REQUEST['module']) : $arguments[0]['module'];
}
$entity = new cbexpsql_environmentstub($inModule, 0);
$entity->setData($arguments[0]);
}
Expand Down

0 comments on commit b3bab1e

Please sign in to comment.