Fixed problem with custom scripts

This commit is contained in:
Laurent Bindschaedler 2014-03-19 09:01:06 +01:00 committed by Anand Doshi
parent 385d02873c
commit c6bbc1c06d

View file

@ -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: