Skip to content

Commit

Permalink
Merge pull request #282 from gabrieljenik/patch-6
Browse files Browse the repository at this point in the history
Fixed Issue: Reordering doesn't have to consider subquestions.
  • Loading branch information
c-schmitz committed Feb 25, 2015
2 parents 25d0dea + ec48227 commit 35e6984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Question.php
Expand Up @@ -168,7 +168,7 @@ public static function updateSortOrder($gid, $surveyid)
function updateQuestionOrder($gid,$language,$position=0)
{
$data=Yii::app()->db->createCommand()->select('qid')
->where(array('and','gid=:gid','language=:language'))
->where(array('and','gid=:gid','language=:language', 'parent_qid=0')
->order('question_order, title ASC')
->from('{{questions}}')
->bindParam(':gid', $gid, PDO::PARAM_INT)
Expand Down

0 comments on commit 35e6984

Please sign in to comment.