Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed issue #13651: Array (text) always shown as error in checkinterg…
…rity

Dev: need scale_id
  • Loading branch information
Shnoulle committed May 4, 2018
1 parent 70c9ba3 commit f9e90b7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions application/controllers/admin/checkintegrity.php
Expand Up @@ -894,12 +894,13 @@ protected function checkQuestionOrderDuplicates()
SELECT
q.sid,
q.gid,
q.parent_qid
q.parent_qid,
q.scale_id
FROM {{questions}} q
JOIN {{groups}} g ON q.gid = g.gid
JOIN {{surveys}} s ON s.sid = q.sid
WHERE q.language = s.language AND g.language = s.language
GROUP BY q.sid, q.gid, q.parent_qid
GROUP BY q.sid, q.gid, q.parent_qid, q.scale_id
HAVING COUNT(DISTINCT question_order) != COUNT(qid);
";
$result = Yii::app()->db->createCommand($sQuery)->queryAll();
Expand Down

0 comments on commit f9e90b7

Please sign in to comment.