Skip to content

Commit

Permalink
Fixed issue #13778: Exporting data to the most recent version of R le…
Browse files Browse the repository at this point in the history
…ads to incorrect data
  • Loading branch information
dominikvitt committed Jun 15, 2018
1 parent 275cf65 commit d9f60ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/plugins/ExportR/RSyntaxWriter.php
Expand Up @@ -147,7 +147,7 @@ public function close()
$str .= '),labels=c(';

foreach ($answers as $answer) {
$str .= '"'.addslashes($answer['value']).'", ';
$str .= '"'.addslashes(!empty($answer['value'])?$answer['value']:$answer['code']).'", ';
}

$str = mb_substr($str, 0, -2);
Expand Down

0 comments on commit d9f60ac

Please sign in to comment.