Skip to content

Commit

Permalink
Fixed issue: Surveys not ordered by name
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Apr 8, 2013
1 parent 94c16b8 commit 7490898
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/common_helper.php
Expand Up @@ -314,9 +314,9 @@ function getSurveyList($returnarray=false, $surveyid=false)

if(is_null($cached)) {
if (!hasGlobalPermission('USER_RIGHT_SUPERADMIN'))
$surveyidresult = Survey::model()->permission(Yii::app()->user->getId())->with(array('languagesettings'=>array('condition'=>'surveyls_language=language')))->findAll();
$surveyidresult = Survey::model()->permission(Yii::app()->user->getId())->with(array('languagesettings'=>array('condition'=>'surveyls_language=language')))->findAll(array('order'=>'surveyls_title'));
else
$surveyidresult = Survey::model()->with(array('languagesettings'=>array('condition'=>'surveyls_language=language')))->findAll();
$surveyidresult = Survey::model()->with(array('languagesettings'=>array('condition'=>'surveyls_language=language')))->findAll(array('order'=>'surveyls_title'));

$surveynames = array();
foreach ($surveyidresult as $result)
Expand Down

0 comments on commit 7490898

Please sign in to comment.