Skip to content

Commit

Permalink
Dev: Disable question template attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
olleharstedt committed Jun 19, 2018
1 parent 8c2cc94 commit 139c36e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/controllers/admin/questions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,8 @@ public function index($sa, $surveyid, $gid, $qid = null)
$aData['surveyid'] = $surveyid;
$aData['gid'] = $gid;
$questionTemplateAttributes = Question::model()->getAdvancedSettingsWithValues($qid, $oQuestion->type, $surveyid);
$aData['aQuestionTemplateAttributes'] = $questionTemplateAttributes['question_template'];
// TODO: No index 'question_template'
$aData['aQuestionTemplateAttributes'] = []; //$questionTemplateAttributes['question_template'];
$aData['aQuestionTemplateAttributes']['core'] = array('title'=>'Default', 'preview' => questionHelper::getQuestionThemePreviewUrl($oQuestion->type));
$aData['aQuestionTemplateAttributes']['value'] = 'core';

Expand Down

0 comments on commit 139c36e

Please sign in to comment.