Skip to content

Commit

Permalink
Fixed issue #16372: Unable to save any settings on "General Settings"…
Browse files Browse the repository at this point in the history
… screen when using MSSQL
  • Loading branch information
c-schmitz committed Jun 9, 2020
1 parent 392e343 commit 018cc1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/helpers/common_helper.php
Expand Up @@ -3790,7 +3790,7 @@ function fixLanguageConsistency($sid, $availlangs = '')

// Fix subquestions where the scale id is different between languages
// First find all affected question IDs
$query = "SELECT q.qid FROM {{questions}} q JOIN {{questions}} r ON q.qid=r.qid WHERE q.parent_qid<>0 AND q.scale_id<>r.scale_id GROUP BY qid";
$query = "SELECT q.qid FROM {{questions}} q JOIN {{questions}} r ON q.qid=r.qid WHERE q.parent_qid<>0 AND q.scale_id<>r.scale_id GROUP BY q.qid";
$result = Yii::app()->db->createCommand($query)->queryColumn();
foreach ($result as $questionID) {
// Get the question in base language
Expand Down

0 comments on commit 018cc1f

Please sign in to comment.