Przeglądaj źródła

Fixed problem with custom scripts

version-14
Laurent Bindschaedler 11 lat temu
committed by Anand Doshi
rodzic
commit
c6bbc1c06d
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      frappe/model/doctype.py

+ 1
- 1
frappe/model/doctype.py Wyświetl plik

@@ -302,7 +302,7 @@ def add_custom_script(doc):
custom = frappe.db.get_value("Custom Script", {"dt": doc.name,
"script_type": "Client"}, "script") or ""
doc.fields["__js"] = (doc.fields.get('__js') or '') + "\n\n".join(custom)
doc.fields["__js"] = (doc.fields.get('__js') or '') + "\n\n" + custom
def render_jinja(content):
if "{% include" in content:


Ładowanie…
Anuluj
Zapisz