Skip to content

Commit

Permalink
Dev: #08396 child : bad prefix fortokentable
Browse files Browse the repository at this point in the history
  • Loading branch information
Shnoulle committed Nov 20, 2013
1 parent 06344fd commit 5fb7606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/admin/exportresults_helper.php
Expand Up @@ -305,8 +305,8 @@ public function loadSurveyResults(SurveyObj $survey, $iLimit, $iOffset, $iMaximu
$oRecordSet->leftJoin('{{tokens_' . $survey->id . '}} tokentable','tokentable.token={{survey_' . $survey->id . '}}.token');
$aTokenFields=Yii::app()->db->schema->getTable('{{tokens_' . $survey->id . '}}')->getColumnNames();
foreach ($aTokenFields as &$sField)
$sField ="token.".$sField;
$aSelectFields=array_merge($aSelectFields,array_diff($aTokenFields, array('token.token')));
$sField ="tokentable.".$sField;
$aSelectFields=array_merge($aSelectFields,array_diff($aTokenFields, array('tokentable.token')));
//$aSelectFields=array_diff($aSelectFields, array('{{survey_{$survey->id}}}.token'));
//$aSelectFields[]='{{survey_' . $survey->id . '}}.token';
}
Expand Down

0 comments on commit 5fb7606

Please sign in to comment.