Skip to content

Commit

Permalink
Fixed issue #16518: Cannot add condition based on Survey participant …
Browse files Browse the repository at this point in the history
…attributes

Considering editSourceTab for setting up the condition fieldName
  • Loading branch information
gabrieljenik authored and eddylackmann committed Jul 30, 2020
1 parent 408683d commit a6dcb39
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/controllers/admin/conditionsaction.php
Expand Up @@ -663,8 +663,10 @@ protected function insertCondition(array $args)
{
// Extract p_scenario, p_cquestions, ...
extract($args);

$editSourceTab = $request->getPost('editSourceTab');

if (isset($p_cquestions) && $p_cquestions != '') {
if (isset($p_cquestions) && $p_cquestions != '' && $editSourceTab == '#SRCPREVQUEST') {
$conditionCfieldname = $p_cquestions;
} elseif (isset($p_csrctoken) && $p_csrctoken != '') {
$conditionCfieldname = $p_csrctoken;
Expand Down

0 comments on commit a6dcb39

Please sign in to comment.