Skip to content

Commit

Permalink
Dev: fixed issue #07757: Unable to show Adanced seting when create a …
Browse files Browse the repository at this point in the history
…new question
  • Loading branch information
Shnoulle committed Apr 10, 2013
1 parent 837657a commit c051350
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions application/controllers/admin/questions.php
Expand Up @@ -918,12 +918,12 @@ public function delete($surveyid, $gid, $qid)
*/
public function ajaxquestionattributes()
{
$surveyid = (int) $_POST['sid'];
$qid = (int) $_POST['qid'];
$type = $_POST['question_type'];

$aLanguages = array_merge(array(Survey::model()->findByPk($surveyid)->language), Survey::model()->findByPk($surveyid)->additionalLanguages);
$surveyid = (int) Yii::app()->request->getParam('sid',0);
$qid = (int) Yii::app()->request->getParam('qid',0);
$type = Yii::app()->request->getParam('question_type');
$thissurvey = getSurveyInfo($surveyid);
if(!$thissurvey) die();
$aLanguages = array_merge(array(Survey::model()->findByPk($surveyid)->language), Survey::model()->findByPk($surveyid)->additionalLanguages);

$aAttributesWithValues = Question::model()->getAdvancedSettingsWithValues($qid, $type, $surveyid);
uasort($aAttributesWithValues, 'categorySort');
Expand Down

0 comments on commit c051350

Please sign in to comment.