FIX: child theme component vars not resolved in parent

This commit is contained in:
Sam
2017-11-14 15:22:59 +11:00
parent bf5ba5fbd1
commit 075a458489
3 changed files with 33 additions and 3 deletions

View File

@@ -41,9 +41,7 @@ module Stylesheet
colors.each do |n, hex|
contents << "$#{n}: ##{hex} !default;\n"
end
theme&.theme_fields&.each do |field|
next unless ThemeField.theme_var_type_ids.include?(field.type_id)
theme&.all_theme_variables&.each do |field|
if field.type_id == ThemeField.types[:theme_upload_var]
if upload = field.upload
url = upload_cdn_path(upload.url)