mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-14 15:57:41 +00:00
[added] frappe.safe_eval
This commit is contained in:
@@ -119,7 +119,7 @@ class StatusUpdater(Document):
|
||||
self.status = s[0]
|
||||
break
|
||||
elif s[1].startswith("eval:"):
|
||||
if frappe.safe_eval(s[1][5:]):
|
||||
if eval(s[1][5:]):
|
||||
self.status = s[0]
|
||||
break
|
||||
elif getattr(self, s[1])():
|
||||
|
||||
Reference in New Issue
Block a user