Skip to content

Commit

Permalink
Fixed issue #8917: Error in R export plugin when exporting Yes/No que…
Browse files Browse the repository at this point in the history
…stion results
  • Loading branch information
c-schmitz committed Jul 20, 2015
1 parent ea7bf96 commit 7cec2f9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions application/core/plugins/ExportR/RDataWriter.php
Expand Up @@ -82,11 +82,11 @@ protected function transformResponseValue($value, $fieldType, FormattingOptions
}
break;

case 'Y': // Yes no question
case 'Y': // Yes no question
if ($value == 'Y') {
return 2;
} elseif ($value == 'N') {
return 1;
} elseif ($value == 'N') {
return 2;
} else {
// No data, probably a hidden question
return $this->na;
Expand Down

0 comments on commit 7cec2f9

Please sign in to comment.