Skip to content

Commit

Permalink
fix(condition): fix multiple condition process when a question is una…
Browse files Browse the repository at this point in the history
…nswered
btry committed Feb 6, 2018

Verified

This commit was signed with the committer’s verified signature.
ljharb Jordan Harband
1 parent c85c9e1 commit 6bce6e7
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 0 additions & 1 deletion ajax/showfields.php
Original file line number Diff line number Diff line change
@@ -5,4 +5,3 @@
$visibility = PluginFormcreatorFields::updateVisibility($currentValues);
echo json_encode($visibility);
exit();

5 changes: 3 additions & 2 deletions inc/fields.class.php
Original file line number Diff line number Diff line change
@@ -181,8 +181,9 @@ public static function isVisible($id, $values) {
$nextLogic = 'OR';
}
if (!isset($values[$condition['field']])) {
unset($evalQuestion[$id]);
return false;
//unset($evalQuestion[$id]);
//return false;
$values[$condition['field']] = '';
}
if (!self::isVisible($condition['field'], $values)) {
unset($evalQuestion[$id]);

0 comments on commit 6bce6e7

Please sign in to comment.