Skip to content

Commit

Permalink
Fixed issue #17700: Custom logo disappears in extended themes (#2459)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrieljenik committed Jun 23, 2022
1 parent 297841a commit 888b46f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
4 changes: 2 additions & 2 deletions application/models/TemplateConfiguration.php
Expand Up @@ -414,15 +414,15 @@ public static function getInstance($sTemplateName = null, $iSurveyGroupId = null
$oTemplateConfigurationModel = TemplateConfiguration::getInstanceFromSurveyGroup(
$iSurveyGroupId,
$sTemplateName,
$abstractInstance
true
);
}

if ($iSurveyId != null) {
$oTemplateConfigurationModel = TemplateConfiguration::getInstanceFromSurveyId(
$iSurveyId,
$sTemplateName,
$abstractInstance
true
);
}

Expand Down
8 changes: 5 additions & 3 deletions assets/packages/themeoptions-core/themeoptions-core.js
Expand Up @@ -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);
}));
}
}

};
Expand Down

0 comments on commit 888b46f

Please sign in to comment.