{"action":"created","comment":{"url":"https://api.github.com/repos/frappe/frappe/pulls/comments/94715133","pull_request_review_id":15248681,"id":94715133,"diff_hunk":"@@ -76,6 +76,28 @@ frappe.ui.form.on('User', {\n \t\t\t\t}\n \t\t\t}\n \t\t}\n+\t\tif (frm.doc.user_emails){\n+\t\t\tvar found =0\n+\t\t\tfor (var i = 0;i<frm.doc.user_emails.length;i++){\n+\t\t\t\tif (frm.doc.email==frm.doc.user_emails[i].email_id){\n+\t\t\t\t\tfound = 1;\n+\t\t\t\t}\n+\t\t\t}\n+\t\t\tfrm.get_field(\"create_user_email\").df.hidden = found;\n+\t\t\tfrm.refresh_field(\"create_user_email\");\n+\t\t}else{\n+\t\t\tfrm.get_field(\"create_user_email\").df.hidden = 1\n+\t\t}\n+\t\tfrm.refresh_field(\"create_user_email\");\n+\n+\t\tif (frappe.route_titles[\"unsaved\"]===1){","path":"frappe/core/doctype/user/user.js","position":18,"original_position":18,"commit_id":"f90c56b100547f949d1646cf0b56e1509a62ea77","original_commit_id":"f90c56b100547f949d1646cf0b56e1509a62ea77","user":{"login":"RobertSchouten","id":15826176,"avatar_url":"https://avatars.githubusercontent.com/u/15826176?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertSchouten","html_url":"https://github.com/RobertSchouten","followers_url":"https://api.github.com/users/RobertSchouten/followers","following_url":"https://api.github.com/users/RobertSchouten/following{/other_user}","gists_url":"https://api.github.com/users/RobertSchouten/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertSchouten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertSchouten/subscriptions","organizations_url":"https://api.github.com/users/RobertSchouten/orgs","repos_url":"https://api.github.com/users/RobertSchouten/repos","events_url":"https://api.github.com/users/RobertSchouten/events{/privacy}","received_events_url":"https://api.github.com/users/RobertSchouten/received_events","type":"User","site_admin":false},"body":"this is for the email matching so u can create a contact fill in customer or supplier and it will redirect back to page","created_at":"2017-01-05T05:19:41Z","updated_at":"2017-01-05T05:19:41Z","html_url":"https://github.com/frappe/frappe/pull/2485#discussion_r94715133","pull_request_url":"https://api.github.com/repos/frappe/frappe/pulls/2485","_links":{"self":{"href":"https://api.github.com/repos/frappe/frappe/pulls/comments/94715133"},"html":{"href":"https://github.com/frappe/frappe/pull/2485#discussion_r94715133"},"pull_request":{"href":"https://api.github.com/repos/frappe/frappe/pulls/2485"}}},"pull_request":{"url":"https://api.github.com/repos/frappe/frappe/pulls/2485","id":98888176,"html_url":"https://github.com/frappe/frappe/pull/2485","diff_url":"https://github.com/frappe/frappe/pull/2485.diff","patch_url":"https://github.com/frappe/frappe/pull/2485.patch","issue_url":"https://api.github.com/repos/frappe/frappe/issues/2485","number":2485,"state":"open","locked":false,"title":"Email inbox","user":{"login":"RobertSchouten","id":15826176,"avatar_url":"https://avatars.githubusercontent.com/u/15826176?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertSchouten","html_url":"https://github.com/RobertSchouten","followers_url":"https://api.github.com/users/RobertSchouten/followers","following_url":"https://api.github.com/users/RobertSchouten/following{/other_user}","gists_url":"https://api.github.com/users/RobertSchouten/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertSchouten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertSchouten/subscriptions","organizations_url":"https://api.github.com/users/RobertSchouten/orgs","repos_url":"https://api.github.com/users/RobertSchouten/repos","events_url":"https://api.github.com/users/RobertSchouten/events{/privacy}","received_events_url":"https://api.github.com/users/RobertSchouten/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-12-21T08:05:38Z","updated_at":"2017-01-05T05:19:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"234657f0a1f207645940e7aacd1d47edcbf60a3c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/frappe/frappe/pulls/2485/commits","review_comments_url":"https://api.github.com/repos/frappe/frappe/pulls/2485/comments","review_comment_url":"https://api.github.com/repos/frappe/frappe/pulls/comments{/number}","comments_url":"https://api.github.com/repos/frappe/frappe/issues/2485/comments","statuses_url":"https://api.github.com/repos/frappe/frappe/statuses/f90c56b100547f949d1646cf0b56e1509a62ea77","head":{"label":"RobertSchouten:email-inbox-rebase","ref":"email-inbox-rebase","sha":"f90c56b100547f949d1646cf0b56e1509a62ea77","user":{"login":"RobertSchouten","id":15826176,"avatar_url":"https://avatars.githubusercontent.com/u/15826176?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertSchouten","html_url":"https://github.com/RobertSchouten","followers_url":"https://api.github.com/users/RobertSchouten/followers","following_url":"https://api.github.com/users/RobertSchouten/following{/other_user}","gists_url":"https://api.github.com/users/RobertSchouten/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertSchouten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertSchouten/subscriptions","organizations_url":"https://api.github.com/users/RobertSchouten/orgs","repos_url":"https://api.github.com/users/RobertSchouten/repos","events_url":"https://api.github.com/users/RobertSchouten/events{/privacy}","received_events_url":"https://api.github.com/users/RobertSchouten/received_events","type":"User","site_admin":false},"repo":{"id":50985962,"name":"frappe","full_name":"RobertSchouten/frappe","owner":{"login":"RobertSchouten","id":15826176,"avatar_url":"https://avatars.githubusercontent.com/u/15826176?v=3","gravatar_id":"","url":"https://api.github.com/users/RobertSchouten","html_url":"https://github.com/RobertSchouten","followers_url":"https://api.github.com/users/RobertSchouten/followers","following_url":"https://api.github.com/users/RobertSchouten/following{/other_user}","gists_url":"https://api.github.com/users/RobertSchouten/gists{/gist_id}","starred_url":"https://api.github.com/users/RobertSchouten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RobertSchouten/subscriptions","organizations_url":"https://api.github.com/users/RobertSchouten/orgs","repos_url":"https://api.github.com/users/RobertSchouten/repos","events_url":"https://api.github.com/users/RobertSchouten/events{/privacy}","received_events_url":"https://api.github.com/users/RobertSchouten/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RobertSchouten/frappe","description":"Full stack web framework in python & js. Used to build erpnext","fork":true,"url":"https://api.github.com/repos/RobertSchouten/frappe","forks_url":"https://api.github.com/repos/RobertSchouten/frappe/forks","keys_url":"https://api.github.com/repos/RobertSchouten/frappe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RobertSchouten/frappe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RobertSchouten/frappe/teams","hooks_url":"https://api.github.com/repos/RobertSchouten/frappe/hooks","issue_events_url":"https://api.github.com/repos/RobertSchouten/frappe/issues/events{/number}","events_url":"https://api.github.com/repos/RobertSchouten/frappe/events","assignees_url":"https://api.github.com/repos/RobertSchouten/frappe/assignees{/user}","branches_url":"https://api.github.com/repos/RobertSchouten/frappe/branches{/branch}","tags_url":"https://api.github.com/repos/RobertSchouten/frappe/tags","blobs_url":"https://api.github.com/repos/RobertSchouten/frappe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RobertSchouten/frappe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RobertSchouten/frappe/git/refs{/sha}","trees_url":"https://api.github.com/repos/RobertSchouten/frappe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RobertSchouten/frappe/statuses/{sha}","languages_url":"https://api.github.com/repos/RobertSchouten/frappe/languages","stargazers_url":"https://api.github.com/repos/RobertSchouten/frappe/stargazers","contributors_url":"https://api.github.com/repos/RobertSchouten/frappe/contributors","subscribers_url":"https://api.github.com/repos/RobertSchouten/frappe/subscribers","subscription_url":"https://api.github.com/repos/RobertSchouten/frappe/subscription","commits_url":"https://api.github.com/repos/RobertSchouten/frappe/commits{/sha}","git_commits_url":"https://api.github.com/repos/RobertSchouten/frappe/git/commits{/sha}","comments_url":"https://api.github.com/repos/RobertSchouten/frappe/comments{/number}","issue_comment_url":"https://api.github.com/repos/RobertSchouten/frappe/issues/comments{/number}","contents_url":"https://api.github.com/repos/RobertSchouten/frappe/contents/{+path}","compare_url":"https://api.github.com/repos/RobertSchouten/frappe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RobertSchouten/frappe/merges","archive_url":"https://api.github.com/repos/RobertSchouten/frappe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RobertSchouten/frappe/downloads","issues_url":"https://api.github.com/repos/RobertSchouten/frappe/issues{/number}","pulls_url":"https://api.github.com/repos/RobertSchouten/frappe/pulls{/number}","milestones_url":"https://api.github.com/repos/RobertSchouten/frappe/milestones{/number}","notifications_url":"https://api.github.com/repos/RobertSchouten/frappe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RobertSchouten/frappe/labels{/name}","releases_url":"https://api.github.com/repos/RobertSchouten/frappe/releases{/id}","deployments_url":"https://api.github.com/repos/RobertSchouten/frappe/deployments","created_at":"2016-02-03T08:38:57Z","updated_at":"2016-06-22T09:03:55Z","pushed_at":"2017-01-05T02:12:37Z","git_url":"git://github.com/RobertSchouten/frappe.git","ssh_url":"git@github.com:RobertSchouten/frappe.git","clone_url":"https://github.com/RobertSchouten/frappe.git","svn_url":"https://github.com/RobertSchouten/frappe","homepage":"http://erpnext.org","size":86373,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"frappe:develop","ref":"develop","sha":"39adce47d56970989a5a123ecb7ba39e319fc839","user":{"login":"frappe","id":836974,"avatar_url":"https://avatars.githubusercontent.com/u/836974?v=3","gravatar_id":"","url":"https://api.github.com/users/frappe","html_url":"https://github.com/frappe","followers_url":"https://api.github.com/users/frappe/followers","following_url":"https://api.github.com/users/frappe/following{/other_user}","gists_url":"https://api.github.com/users/frappe/gists{/gist_id}","starred_url":"https://api.github.com/users/frappe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frappe/subscriptions","organizations_url":"https://api.github.com/users/frappe/orgs","repos_url":"https://api.github.com/users/frappe/repos","events_url":"https://api.github.com/users/frappe/events{/privacy}","received_events_url":"https://api.github.com/users/frappe/received_events","type":"Organization","site_admin":false},"repo":{"id":1864194,"name":"frappe","full_name":"frappe/frappe","owner":{"login":"frappe","id":836974,"avatar_url":"https://avatars.githubusercontent.com/u/836974?v=3","gravatar_id":"","url":"https://api.github.com/users/frappe","html_url":"https://github.com/frappe","followers_url":"https://api.github.com/users/frappe/followers","following_url":"https://api.github.com/users/frappe/following{/other_user}","gists_url":"https://api.github.com/users/frappe/gists{/gist_id}","starred_url":"https://api.github.com/users/frappe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/frappe/subscriptions","organizations_url":"https://api.github.com/users/frappe/orgs","repos_url":"https://api.github.com/users/frappe/repos","events_url":"https://api.github.com/users/frappe/events{/privacy}","received_events_url":"https://api.github.com/users/frappe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/frappe/frappe","description":"Full Stack Web Framework in Python & JS. Used to build ERPNext","fork":false,"url":"https://api.github.com/repos/frappe/frappe","forks_url":"https://api.github.com/repos/frappe/frappe/forks","keys_url":"https://api.github.com/repos/frappe/frappe/keys{/key_id}","collaborators_url":"https://api.github.com/repos/frappe/frappe/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/frappe/frappe/teams","hooks_url":"https://api.github.com/repos/frappe/frappe/hooks","issue_events_url":"https://api.github.com/repos/frappe/frappe/issues/events{/number}","events_url":"https://api.github.com/repos/frappe/frappe/events","assignees_url":"https://api.github.com/repos/frappe/frappe/assignees{/user}","branches_url":"https://api.github.com/repos/frappe/frappe/branches{/branch}","tags_url":"https://api.github.com/repos/frappe/frappe/tags","blobs_url":"https://api.github.com/repos/frappe/frappe/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/frappe/frappe/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/frappe/frappe/git/refs{/sha}","trees_url":"https://api.github.com/repos/frappe/frappe/git/trees{/sha}","statuses_url":"https://api.github.com/repos/frappe/frappe/statuses/{sha}","languages_url":"https://api.github.com/repos/frappe/frappe/languages","stargazers_url":"https://api.github.com/repos/frappe/frappe/stargazers","contributors_url":"https://api.github.com/repos/frappe/frappe/contributors","subscribers_url":"https://api.github.com/repos/frappe/frappe/subscribers","subscription_url":"https://api.github.com/repos/frappe/frappe/subscription","commits_url":"https://api.github.com/repos/frappe/frappe/commits{/sha}","git_commits_url":"https://api.github.com/repos/frappe/frappe/git/commits{/sha}","comments_url":"https://api.github.com/repos/frappe/frappe/comments{/number}","issue_comment_url":"https://api.github.com/repos/frappe/frappe/issues/comments{/number}","contents_url":"https://api.github.com/repos/frappe/frappe/contents/{+path}","compare_url":"https://api.github.com/repos/frappe/frappe/compare/{base}...{head}","merges_url":"https://api.github.com/repos/frappe/frappe/merges","archive_url":"https://api.github.com/repos/frappe/frappe/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/frappe/frappe/downloads","issues_url":"https://api.github.com/repos/frappe/frappe/issues{/number}","pulls_url":"https://api.github.com/repos/frappe/frappe/pulls{/number}","milestones_url":"https://api.github.com/repos/frappe/frappe/milestones{/number}","notifications_url":"https://api.github.com/repos/frappe/frappe/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/frappe/frappe/labels{/name}","releases_url":"https://api.github.com/repos/frappe/frappe/releases{/id}","deployments_url":"https://api.github.com/repos/frappe/frappe/deployments","created_at":"2011-06-08T08:14:16Z","updated_at":"2016-12-30T09:21:51Z","pushed_at":"2017-01-05T02:12:39Z","git_url":"git://github.com/frappe/frappe.git","ssh_url":"git@github.com:frappe/frappe.git","clone_url":"https://github.com/frappe/frappe.git","svn_url":"https://github.com/frappe/frappe","homepage":"http://frappe.io","size":89811,"stargazers_count":498,"watchers_count":498,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":362,"mirror_url":null,"open_issues_count":194,"forks":362,"open_issues":194,"watchers":498,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/frappe/frappe/pulls/2485"},"html":{"href":"https://github.com/frappe/frappe/pull/2485"},"issue":{"href":"https://api.github.com/repos/frappe/frappe/issues/2485"},"comments":{"href":"https://api.github.com/repos/frappe/frappe/issues/2485/comments"},"review_comments":{"href":"https://api.github.com/repos/frappe/frappe/pulls/2485/comments"},"review_comment":{"href":"https://api.github.com/repos/frappe/frappe/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/frappe/frappe/pulls/2485/commits"},"statuses":{"href":"https://api.github.com/repos/frappe/frappe/statuses/f90c56b100547f949d1646cf0b56e1509a62ea77"}}}}
{"actor":{"display_login":"RobertSchouten"}}