diff --git a/application/models/TemplateConfiguration.php b/application/models/TemplateConfiguration.php index c2c66c70226..0f45aaae4f7 100755 --- a/application/models/TemplateConfiguration.php +++ b/application/models/TemplateConfiguration.php @@ -414,7 +414,7 @@ public static function getInstance($sTemplateName = null, $iSurveyGroupId = null $oTemplateConfigurationModel = TemplateConfiguration::getInstanceFromSurveyGroup( $iSurveyGroupId, $sTemplateName, - $abstractInstance + true ); } @@ -422,7 +422,7 @@ public static function getInstance($sTemplateName = null, $iSurveyGroupId = null $oTemplateConfigurationModel = TemplateConfiguration::getInstanceFromSurveyId( $iSurveyId, $sTemplateName, - $abstractInstance + true ); } diff --git a/assets/packages/themeoptions-core/themeoptions-core.js b/assets/packages/themeoptions-core/themeoptions-core.js index d581933dfab..148c8b41dcd 100644 --- a/assets/packages/themeoptions-core/themeoptions-core.js +++ b/assets/packages/themeoptions-core/themeoptions-core.js @@ -205,9 +205,11 @@ var ThemeOptions = function () { console.error('No valid monochrom theme field!'); } - $('#simple_edit_add_css').val(currentThemeObject.add.filter(function (item, i) { - return /^css\/variations\/.*$/.test(item); - })); + if (currentThemeObject.add) { + $('#simple_edit_add_css').val(currentThemeObject.add.filter(function (item, i) { + return /^css\/variations\/.*$/.test(item); + })); + } } };