Procházet zdrojové kódy

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

version-14
Felipe Orellana před 8 roky
committed by Rushabh Mehta
rodič
revize
b34b9b76eb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      frappe/www/website_script.py

+ 1
- 1
frappe/www/website_script.py Zobrazit soubor

@@ -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 "")


Načítá se…
Zrušit
Uložit