Skip to content

Commit

Permalink
style: Fix indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshetty3416 authored and gavindsouza committed Apr 1, 2020
1 parent b5a9250 commit a8af9e9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions frappe/core/doctype/doctype/test_doctype.py
Expand Up @@ -120,14 +120,14 @@ def test_data_field_options(self):

for field_option in (valid_data_field_options + invalid_data_field_options):
test_doctype = frappe.get_doc({
"doctype": "DocType",
"name": doctype_name,
"module": "Core",
"custom": 1,
"fields": [{
"fieldname": "{0}_field".format(field_option),
"fieldtype": "Data",
"options": field_option
"doctype": "DocType",
"name": doctype_name,
"module": "Core",
"custom": 1,
"fields": [{
"fieldname": "{0}_field".format(field_option),
"fieldtype": "Data",
"options": field_option
}]
})

Expand Down
2 changes: 1 addition & 1 deletion frappe/public/js/frappe/form/controls/data.js
Expand Up @@ -94,7 +94,7 @@ frappe.ui.form.ControlData = frappe.ui.form.ControlInput.extend({
return v;
}
if(this.df.options == 'Phone') {
this.df.invalid = !validate_phone(v)
this.df.invalid = !validate_phone(v);
return v;
} else if(this.df.options == 'Email') {
var email_list = frappe.utils.split_emails(v);
Expand Down

0 comments on commit a8af9e9

Please sign in to comment.