瀏覽代碼

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"

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()
js = strip(theme and theme.js or "")


Loading…
取消
儲存