commit | b58979fd3e2d1fbb33b7370fb93b8bc97d04272a | [log] [tgz] |
---|---|---|
author | Rushabh Mehta <rmehta@gmail.com> | Thu Apr 06 18:58:39 2017 +0530 |
committer | Rushabh Mehta <rmehta@gmail.com> | Thu Apr 06 18:58:39 2017 +0530 |
tree | 825beb87068a980af559973d8a40efa881662309 | |
parent | 93656417774c8b48e1d9bc18225e1547e00982e4 [diff] |
[added] frappe.safe_eval
diff --git a/erpnext/controllers/status_updater.py b/erpnext/controllers/status_updater.py index 0421580..f3019bf 100644 --- a/erpnext/controllers/status_updater.py +++ b/erpnext/controllers/status_updater.py
@@ -119,7 +119,7 @@ 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])():