Skip to content

Commit

Permalink
Fix bug in the Survey_permissions model caused by the SQL refactor.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/source/limesurvey_yii@12086 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
Aaron Schmitz committed Jan 17, 2012
1 parent f7362da commit efde9c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/Survey_permissions.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,6 @@ function getUserDetails($surveyid)
WHERE p.sid = :surveyid AND u.uid != :userid
GROUP BY p.sid, p.uid, u.users_name, u.full_name
ORDER BY u.users_name";
return Yii::app()->db->createCommand($query2)->bindParam(":userid", Yii::app()->session['loginID'], PDO::PARAM_INT)->bindParam("surveyid", $surveyid, PDO::PARAM_INT)->query(); //Checked
return Yii::app()->db->createCommand($query2)->bindParam(":userid", Yii::app()->user->getId(), PDO::PARAM_INT)->bindParam("surveyid", $surveyid, PDO::PARAM_INT)->query(); //Checked
}
}

0 comments on commit efde9c4

Please sign in to comment.