Fixed problem with custom scripts
This commit is contained in:
parent
385d02873c
commit
c6bbc1c06d
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue