浏览代码

Fixes issue where field 'javascript' in 'Website Script' Doctype breaks scripts delivery on website_script.py (#2082)

version-14
Felipe Orellana 8 年前
committed by Rushabh Mehta
父节点
当前提交
b34b9b76eb
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      frappe/www/website_script.py

+ 1
- 1
frappe/www/website_script.py 查看文件

@@ -10,7 +10,7 @@ no_sitemap = 1
base_template_path = "templates/www/website_script.js" base_template_path = "templates/www/website_script.js"


def get_context(context): def get_context(context):
context.javascript = frappe.db.get_single_value('Website Script', 'javascript')
context.javascript = frappe.db.get_single_value('Website Script', 'javascript') or ""


theme = get_active_theme() theme = get_active_theme()
js = strip(theme and theme.js or "") js = strip(theme and theme.js or "")


正在加载...
取消
保存