Skip to content

Commit

Permalink
Fixed issue #11867: Tip are not working
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 7, 2016
1 parent 148b54b commit e8dfa77
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions application/helpers/expressions/em_manager_helper.php
Expand Up @@ -3509,6 +3509,15 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL)
{
$veqns[$vclass] = '(' . implode(' and ', $eqns) . ')';
}

// Finally, we prevent bugs by removing empty equations
// @see: https://bugs.limesurvey.org/view.php?id=11867#c42419
foreach ($veqns as $key => $eqn){
if ($eqn=='()'){
unset($veqns[$key]);
}
}

$this->qid2validationEqn[$qid] = array(
'eqn' => $veqns,
'tips' => $tips,
Expand Down

0 comments on commit e8dfa77

Please sign in to comment.