fix(patch): custom and standard scss is separated in theme
This commit is contained in:
parent
141a7241b0
commit
ab673a9bb9
2 changed files with 10 additions and 0 deletions
|
|
@ -272,3 +272,4 @@ execute:frappe.delete_doc_if_exists('DocType', 'GCalendar Account')
|
|||
execute:frappe.delete_doc_if_exists('DocType', 'GCalendar Settings')
|
||||
frappe.patches.v12_0.remove_parent_and_parenttype_from_print_formats
|
||||
execute:from frappe.desk.page.setup_wizard.install_fixtures import update_genders;update_genders()
|
||||
frappe.patches.v13_0.website_theme_custom_scss
|
||||
|
|
|
|||
9
frappe/patches/v13_0/website_theme_custom_scss.py
Normal file
9
frappe/patches/v13_0/website_theme_custom_scss.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import frappe
|
||||
|
||||
def execute():
|
||||
for theme in frappe.get_all('Website Theme'):
|
||||
doc = frappe.get_doc('Website Theme', theme.name)
|
||||
if not doc.custom_scss and doc.theme_scss:
|
||||
# move old theme to new theme
|
||||
doc.custom_scss = doc.theme_scss
|
||||
doc.save()
|
||||
Loading…
Add table
Reference in a new issue