Skip to content

Commit

Permalink
Fixed issue: theme config for survey group doens't exist at first lau…
Browse files Browse the repository at this point in the history
…nch of a survey
  • Loading branch information
LouisGac committed Dec 22, 2017
1 parent a7f6d74 commit 4d844c3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/admin/surveyadmin.php
Expand Up @@ -331,6 +331,7 @@ public function changetemplate($iSurveyID, $template)
$oTemplateConfiguration->template_name = $sTemplate;
$oTemplateConfiguration->save();

TemplateConfiguration::getInstanceFromSurveyId($iSurveyID, $sTemplate); // This will force the generation of the entry for survey group
}

public function togglequickaction()
Expand Down Expand Up @@ -2040,6 +2041,7 @@ public function insert($iSurveyID = null)
false
);

TemplateConfiguration::getInstanceFromSurveyId($iNewSurveyid, App()->request->getPost('template')); // This will force the generation of the entry for survey group
}
}

Expand Down

0 comments on commit 4d844c3

Please sign in to comment.