Skip to content

Commit

Permalink
Fixed issue #06214: relevance equations that only contain static repl…
Browse files Browse the repository at this point in the history
…acement values cause JS crash

Dev missed one needed change
  • Loading branch information
TMSWhite committed Jun 14, 2012
1 parent f16b7d2 commit f4cb290
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/expressions/LimeExpressionManager.php
Expand Up @@ -6149,7 +6149,7 @@ static function GetRelevanceAndTailoringJavaScript()
$relParts[] = " $('#display" . $arg['qid'] . "').val('');\n";
}
else {
if (!($relevance == '' || $relevance == '1'))
if (!($relevance == '' || $relevance == '1' || ($arg['result'] == true && $arg['numJsVars']==0)))
{
// In such cases, PHP will make the question visible by default. By not forcing a re-show(), template.js can hide questions with impunity
$relParts[] = " $('#question" . $arg['qid'] . "').show();\n";
Expand Down

0 comments on commit f4cb290

Please sign in to comment.