{"action":"created","issue":{"url":"https://api.github.com/repos/frappe/erpnext/issues/3456","labels_url":"https://api.github.com/repos/frappe/erpnext/issues/3456/labels{/name}","comments_url":"https://api.github.com/repos/frappe/erpnext/issues/3456/comments","events_url":"https://api.github.com/repos/frappe/erpnext/issues/3456/events","html_url":"https://github.com/frappe/erpnext/issues/3456","id":87288414,"number":3456,"title":"Unique Fields should not check for Blank or None Fields","user":{"login":"adityaduggal","id":1057509,"avatar_url":"https://avatars.githubusercontent.com/u/1057509?v=3","gravatar_id":"","url":"https://api.github.com/users/adityaduggal","html_url":"https://github.com/adityaduggal","followers_url":"https://api.github.com/users/adityaduggal/followers","following_url":"https://api.github.com/users/adityaduggal/following{/other_user}","gists_url":"https://api.github.com/users/adityaduggal/gists{/gist_id}","starred_url":"https://api.github.com/users/adityaduggal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adityaduggal/subscriptions","organizations_url":"https://api.github.com/users/adityaduggal/orgs","repos_url":"https://api.github.com/users/adityaduggal/repos","events_url":"https://api.github.com/users/adityaduggal/events{/privacy}","received_events_url":"https://api.github.com/users/adityaduggal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-11T10:01:10Z","updated_at":"2015-07-03T06:23:47Z","closed_at":null,"body":"There is an option to define a field as unique but this property does not let users save blank fields as they are considered as Similar and not unique.\r\n\r\nHere is the Use Case:\r\nI have added a USER ID field in the Sales Partner. Now not all Sales Partners would have a User ID for erpnext account and hence most of them would have this field as BLANK but I don't want to assign same email ID to different Sales partners and for this I wanted to make this field as UNIQUE."},"comment":{"url":"https://api.github.com/repos/frappe/erpnext/issues/comments/118249162","html_url":"https://github.com/frappe/erpnext/issues/3456#issuecomment-118249162","issue_url":"https://api.github.com/repos/frappe/erpnext/issues/3456","id":118249162,"user":{"login":"rmehta","id":140076,"avatar_url":"https://avatars.githubusercontent.com/u/140076?v=3","gravatar_id":"","url":"https://api.github.com/users/rmehta","html_url":"https://github.com/rmehta","followers_url":"https://api.github.com/users/rmehta/followers","following_url":"https://api.github.com/users/rmehta/following{/other_user}","gists_url":"https://api.github.com/users/rmehta/gists{/gist_id}","starred_url":"https://api.github.com/users/rmehta/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rmehta/subscriptions","organizations_url":"https://api.github.com/users/rmehta/orgs","repos_url":"https://api.github.com/users/rmehta/repos","events_url":"https://api.github.com/users/rmehta/events{/privacy}","received_events_url":"https://api.github.com/users/rmehta/received_events","type":"User","site_admin":false},"created_at":"2015-07-03T06:23:47Z","updated_at":"2015-07-03T06:23:47Z","body":"This is a DB feature. Hence hard to fix. Maybe a validation is a better way to handle this.\r\n\r\nYou want to fix this?"}}