From 21c403041452e94758d6e0260e63b7040a43fc58 Mon Sep 17 00:00:00 2001 From: Prateeksha Singh Date: Tue, 23 May 2017 21:05:55 +0530 Subject: [PATCH] superficial fix for charts site (#3373) --- frappe/public/js/frappe/form/control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/public/js/frappe/form/control.js b/frappe/public/js/frappe/form/control.js index 0345a51024..52c13aa6d2 100755 --- a/frappe/public/js/frappe/form/control.js +++ b/frappe/public/js/frappe/form/control.js @@ -319,7 +319,7 @@ frappe.ui.form.ControlInput = frappe.ui.form.Control.extend({ set_disp_area: function() { let value = this.get_value(); - if(inList(["Currency", "Int", "Float"], this.df.fieldtype) && (this.value === 0 || value === 0)) { + if(in_list(["Currency", "Int", "Float"], this.df.fieldtype) && (this.value === 0 || value === 0)) { // to set the 0 value in readonly for currency, int, float field value = 0; } else {