Skip to content

Commit

Permalink
Dev Faster saving with new questions
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jan 26, 2014
1 parent 31e4444 commit bbb937c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -6605,7 +6605,7 @@ function fixLanguageConsistency($sid, $availlangs='')
} else {
$langs=Survey::model()->findByPk($sid)->additionalLanguages;
}

if (count($langs)==0) return true; // Survey only has one language
$baselang = Survey::model()->findByPk($sid)->language;
$query = "SELECT * FROM {{groups}} WHERE sid='{$sid}' AND language='{$baselang}' ORDER BY group_order";
$result = Yii::app()->db->createCommand($query)->query();
Expand Down

0 comments on commit bbb937c

Please sign in to comment.