Skip to content

Commit

Permalink
Fixed issue #06240: conversion of conditions to relevance can fail fo…
Browse files Browse the repository at this point in the history
…r multiple choice tests during some upgrades.
  • Loading branch information
TMSWhite committed Jun 20, 2012
1 parent 4f4366d commit 6bfea3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/expressions/em_manager_helper.php
Expand Up @@ -898,7 +898,7 @@ public static function ConvertConditionsToRelevance($surveyId=NULL, $qid=NULL)
else
{
// Conditions uses ' ' to mean not answered, but internally it is really stored as ''. Fix this
if ($value === '" "') {
if ($value === '" "' || $value == '""') {
if ($row['method'] == '==')
{
$relOrList[] = "is_empty(" . $fieldname . ")";
Expand Down

0 comments on commit 6bfea3b

Please sign in to comment.