Skip to content

Commit

Permalink
Merge pull request #281 from gabrieljenik/patch-5
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 cd6acad + f51a603 commit 15bd2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Question.php
Original file line number Diff line number Diff line change
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 15bd2d0

Please sign in to comment.