[minor] validate template in Standard Reply while saving, fixes #1884

This commit is contained in:
Rushabh Mehta 2016-09-21 11:34:41 +05:30
parent e8e9aef91b
commit d4ca31a19a

View file

@ -4,9 +4,11 @@
from __future__ import unicode_literals
import frappe, json
from frappe.model.document import Document
from frappe.utils.jinja import validate_template
class StandardReply(Document):
pass
def validate(self):
validate_template(self.response)
@frappe.whitelist()
def get_standard_reply(template_name, doc):