Skip to content

Commit

Permalink
Fixed issue #6818: Yes / No is not exported to 1 / 2 if selected
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Nov 2, 2012
1 parent fcd11db commit beda8de
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions application/controllers/admin/export.php
Expand Up @@ -135,6 +135,8 @@ public function exportresults()
if ( ! isset($type) ) { $type = returnGlobal('type'); }
if ( ! isset($convertyto1) ) { $convertyto1 = returnGlobal('convertyto1'); }
if ( ! isset($convertnto2) ) { $convertnto2 = returnGlobal('convertnto2'); }
if ( ! isset($convertyto) ) { $convertyto = returnGlobal('convertyto'); }
if ( ! isset($convertnto) ) { $convertnto = returnGlobal('convertnto'); }
if ( ! isset($convertspacetous) ) { $convertspacetous = returnGlobal('convertspacetous'); }
$clang = Yii::app()->lang;

Expand Down Expand Up @@ -215,14 +217,14 @@ public function exportresults()

if ( $options->convertN )
{
$options->nValue = $convertnto2;
$options->nValue = $convertnto;
}

$options->convertY = $convertyto1;

if ( $options->convertY )
{
$options->yValue = $convertyto1;
$options->yValue = $convertyto;
}

$options->headerSpacesToUnderscores = $convertspacetous;
Expand Down

0 comments on commit beda8de

Please sign in to comment.