Skip to content

Commit

Permalink
Fixed issue #14559: Theme editor loads parent theme.css file instead …
Browse files Browse the repository at this point in the history
…of current theme.css file
  • Loading branch information
dominikvitt committed May 27, 2019
1 parent 1d4f8d3 commit 206c3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/models/TemplateConfig.php
Expand Up @@ -267,7 +267,7 @@ protected function createTemplatePackage($oTemplate)
$aJsFiles = array_merge($aJsFiles, $aTJsFiles);

// Remove/Replace mother template files
if ( ( $this->template instanceof Template && $this->template->extends) || Yii::app()->getConfig('force_xmlsettings_for_survey_rendering') ){
if ( ( $this->template instanceof Template && $this->template->extends) || !empty($this->config->metadata->extends) || Yii::app()->getConfig('force_xmlsettings_for_survey_rendering') ){
$aCssFiles = $this->changeMotherConfiguration('css', $aCssFiles);
$aJsFiles = $this->changeMotherConfiguration('js', $aJsFiles);
}
Expand Down

1 comment on commit 206c3aa

@Shnoulle
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dominikvitt : i made an error on my config.xml ? It must be extends in template and not in metadat ?

If yes : it's my error , not LS error, no ?

Please sign in to comment.