Skip to content

Commit

Permalink
Fixed issue 'other' status flag missing from Show Logic File
Browse files Browse the repository at this point in the history
  • Loading branch information
TMSWhite committed Jun 6, 2012
1 parent 82d27f1 commit e6dd7da
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions classes/expressions/LimeExpressionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -7695,6 +7695,10 @@ static public function ShowSurveyLogicFile($sid, $gid=NULL, $qid=NULL,$LEMdebugL
{
$attrs['regex_validation'] = $LEM->q2subqInfo[$qid]['preg'];
}
if (isset($LEM->questionSeq2relevance[$qseq]['other']))
{
$attrs['other'] = $LEM->questionSeq2relevance[$qseq]['other'];
}
if (count($attrs) > 0) {
$attrTable = "<hr/><table border='1'><tr><th>" . $LEM->gT("Question Attribute") . "</th><th>" . $LEM->gT("Value"). "</th></tr>\n";
$count=0;
Expand Down Expand Up @@ -7740,6 +7744,11 @@ static public function ShowSurveyLogicFile($sid, $gid=NULL, $qid=NULL,$LEMdebugL
case 'show_totals':
case 'regex_validation':
break;
case 'other':
if ($value == 'N') {
$value = NULL; // so can skip this one
}
break;
}
if (is_null($value)) {
continue; // since continuing from within a switch statement doesn't work
Expand Down

0 comments on commit e6dd7da

Please sign in to comment.