Browse Source

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

version-14
Felipe Orellana 8 years ago
committed by Rushabh Mehta
parent
commit
b34b9b76eb
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      frappe/www/website_script.py

+ 1
- 1
frappe/www/website_script.py View File

@@ -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…
Cancel
Save