diff --git a/frappe/core/doctype/user/user.json b/frappe/core/doctype/user/user.json index e7a769af85..7acff8770e 100644 --- a/frappe/core/doctype/user/user.json +++ b/frappe/core/doctype/user/user.json @@ -420,6 +420,31 @@ "set_only_once": 0, "unique": 0 }, + { + "allow_on_submit": 0, + "bold": 0, + "collapsible": 0, + "fieldname": "phone", + "fieldtype": "Data", + "hidden": 0, + "ignore_user_permissions": 0, + "ignore_xss_filter": 0, + "in_filter": 0, + "in_list_view": 0, + "label": "Phone", + "length": 0, + "no_copy": 0, + "permlevel": 0, + "precision": "", + "print_hide": 0, + "print_hide_if_no_value": 0, + "read_only": 0, + "report_hide": 0, + "reqd": 0, + "search_index": 0, + "set_only_once": 0, + "unique": 0 + }, { "allow_on_submit": 0, "bold": 0, @@ -1458,7 +1483,7 @@ "hide_heading": 0, "hide_toolbar": 0, "icon": "icon-user", - "idx": 1, + "idx": 253, "in_create": 0, "in_dialog": 0, "is_submittable": 0, @@ -1466,7 +1491,7 @@ "istable": 0, "max_attachments": 5, "menu_index": 0, - "modified": "2016-03-29 06:26:24.316335", + "modified": "2016-03-30 07:32:15.815142", "modified_by": "Administrator", "module": "Core", "name": "User", diff --git a/frappe/database.py b/frappe/database.py index 296a121c5a..152eac6d2a 100644 --- a/frappe/database.py +++ b/frappe/database.py @@ -369,7 +369,8 @@ class Database: """Returns `get_value` with fieldname='*'""" return self.get_value(doctype, filters, "*", as_dict=as_dict, cache=cache) - def get_value(self, doctype, filters=None, fieldname="name", ignore=None, as_dict=False, debug=False, cache=False): + def get_value(self, doctype, filters=None, fieldname="name", ignore=None, as_dict=False, + debug=False, cache=False): """Returns a document property or list of properties. :param doctype: DocType name. @@ -418,6 +419,7 @@ class Database: user = frappe.db.get_values("User", "test@example.com", "*")[0] """ out = None + cache = False if cache and isinstance(filters, basestring) and \ (doctype, filters, fieldname) in self.value_cache: return self.value_cache[(doctype, filters, fieldname)] diff --git a/frappe/model/utils/link_count.py b/frappe/model/utils/link_count.py index 898e89556e..6145dd8d75 100644 --- a/frappe/model/utils/link_count.py +++ b/frappe/model/utils/link_count.py @@ -23,7 +23,8 @@ def update_link_count(): link_count = frappe.cache().get_value('_link_count') if link_count: for key, count in link_count.iteritems(): - frappe.db.sql('update `tab{0}` set idx = idx + %s where name=%s'.format(key[0]), (count, key[1])) + frappe.db.sql('update `tab{0}` set idx = idx + %s where name=%s'.format(key[0]), + (count, key[1])) # reset the count frappe.cache().delete_value('_link_count') diff --git a/frappe/templates/pages/edit-profile.html b/frappe/templates/pages/edit-profile.html new file mode 100644 index 0000000000..a31bb6aaea --- /dev/null +++ b/frappe/templates/pages/edit-profile.html @@ -0,0 +1,46 @@ +{% extends "templates/web.html" %} + +{% block title %} {{ "Edit Profile" }} {% endblock %} + +{% block header %}