[minor] validate template in Standard Reply while saving, fixes #1884
This commit is contained in:
parent
e8e9aef91b
commit
d4ca31a19a
1 changed files with 3 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue