Skip to content

Commit

Permalink
Fixed issue: notice when creating a survey
Browse files Browse the repository at this point in the history
  • Loading branch information
LouisGac committed Dec 22, 2017
1 parent 2d3fce1 commit f2794c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/models/TemplateConfiguration.php
Expand Up @@ -188,6 +188,7 @@ public static function getInstanceFromSurveyGroup($iSurveyGroupId, $sTemplateNam
// TODO: Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
if (!is_a($oTemplateConfigurationModel, 'TemplateConfiguration') && $sTemplateName != null) {
$oTemplateConfigurationModel = TemplateConfiguration::getInstanceFromTemplateName($sTemplateName);
$oTemplateConfigurationModel->bUseMagicInherit = false;
$oTemplateConfigurationModel->id = null;
$oTemplateConfigurationModel->isNewRecord = true;
$oTemplateConfigurationModel->gsid = $iSurveyGroupId;
Expand Down Expand Up @@ -224,7 +225,7 @@ public static function getInstanceFromSurveyId($iSurveyId, $sTemplateName = null
// TODO: Move to SurveyGroup creation, right now the 'lazy loading' approach is ok.
if (!is_a($oTemplateConfigurationModel, 'TemplateConfiguration') && $sTemplateName != null) {
$oTemplateConfigurationModel = TemplateConfiguration::getInstanceFromTemplateName($sTemplateName);

$oTemplateConfigurationModel->bUseMagicInherit = false;
$oTemplateConfigurationModel->id = null;
$oTemplateConfigurationModel->isNewRecord = true;
$oTemplateConfigurationModel->sid = $iSurveyId;
Expand Down

0 comments on commit f2794c5

Please sign in to comment.