Skip to content

Commit

Permalink
Dev: register template question custom assets
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 22, 2016
1 parent 547c20a commit 619614a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions application/helpers/qanda_helper.php
Expand Up @@ -142,6 +142,7 @@ function retrieveAnswers($ia)
$oQuestion = Question::model()->findByPk(array('qid'=>$ia[0], 'language'=>$lang));
$oQuestionTemplate = QuestionTemplate::getNewInstance($oQuestion);
$thissurvey['oQuestionTemplate'] = $oQuestionTemplate;
$oQuestionTemplate->registerAssets(); // Register the custom assets of the question template, if needed

switch ($ia[4])
{
Expand Down

0 comments on commit 619614a

Please sign in to comment.