{"action":"opened","issue":{"url":"https://api.github.com/repos/senaite/senaite.health/issues/60","repository_url":"https://api.github.com/repos/senaite/senaite.health","labels_url":"https://api.github.com/repos/senaite/senaite.health/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/senaite/senaite.health/issues/60/comments","events_url":"https://api.github.com/repos/senaite/senaite.health/issues/60/events","html_url":"https://github.com/senaite/senaite.health/issues/60","id":305487419,"number":60,"title":"Patients can't be created nor edited when Unique Client Sample ID is active","user":{"login":"juangallostra","id":9968427,"avatar_url":"https://avatars3.githubusercontent.com/u/9968427?v=4","gravatar_id":"","url":"https://api.github.com/users/juangallostra","html_url":"https://github.com/juangallostra","followers_url":"https://api.github.com/users/juangallostra/followers","following_url":"https://api.github.com/users/juangallostra/following{/other_user}","gists_url":"https://api.github.com/users/juangallostra/gists{/gist_id}","starred_url":"https://api.github.com/users/juangallostra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juangallostra/subscriptions","organizations_url":"https://api.github.com/users/juangallostra/orgs","repos_url":"https://api.github.com/users/juangallostra/repos","events_url":"https://api.github.com/users/juangallostra/events{/privacy}","received_events_url":"https://api.github.com/users/juangallostra/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"juangallostra","id":9968427,"avatar_url":"https://avatars3.githubusercontent.com/u/9968427?v=4","gravatar_id":"","url":"https://api.github.com/users/juangallostra","html_url":"https://github.com/juangallostra","followers_url":"https://api.github.com/users/juangallostra/followers","following_url":"https://api.github.com/users/juangallostra/following{/other_user}","gists_url":"https://api.github.com/users/juangallostra/gists{/gist_id}","starred_url":"https://api.github.com/users/juangallostra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juangallostra/subscriptions","organizations_url":"https://api.github.com/users/juangallostra/orgs","repos_url":"https://api.github.com/users/juangallostra/repos","events_url":"https://api.github.com/users/juangallostra/events{/privacy}","received_events_url":"https://api.github.com/users/juangallostra/received_events","type":"User","site_admin":false},"assignees":[{"login":"juangallostra","id":9968427,"avatar_url":"https://avatars3.githubusercontent.com/u/9968427?v=4","gravatar_id":"","url":"https://api.github.com/users/juangallostra","html_url":"https://github.com/juangallostra","followers_url":"https://api.github.com/users/juangallostra/followers","following_url":"https://api.github.com/users/juangallostra/following{/other_user}","gists_url":"https://api.github.com/users/juangallostra/gists{/gist_id}","starred_url":"https://api.github.com/users/juangallostra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juangallostra/subscriptions","organizations_url":"https://api.github.com/users/juangallostra/orgs","repos_url":"https://api.github.com/users/juangallostra/repos","events_url":"https://api.github.com/users/juangallostra/events{/privacy}","received_events_url":"https://api.github.com/users/juangallostra/received_events","type":"User","site_admin":false}],"milestone":null,"comments":0,"created_at":"2018-03-15T10:11:05Z","updated_at":"2018-03-15T10:11:05Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"## Steps to reproduce\r\n\r\n1. Navigate to Site Setup -> Bika Setup -> Id Server and activate the option _Client Patient ID must be unique_\r\n2. Go to the Patients listing and create or edit a patient\r\n3. Once done, click the Save button\r\n\r\n## Current behavior\r\n\r\nIf _Client Patient ID must be unique_ is checked a validation error is **always** raised in the Edit/Create patient form stating that the Client Patient ID is not unique.\r\n\r\n## Expected behavior\r\n\r\nIf _Client Patient ID must be unique_ is checked then the field is validated properly. This means that errors are only raised when there is a repeated Client Patient ID and Patients can be created and edited properly.\r\n\r\n## Screenshot (optional)\r\n\r\n### Current Patients List\r\n![seleccio_014](https://user-images.githubusercontent.com/9968427/37457136-65667ec6-2841-11e8-9c79-64edf885a938.png)\r\n### Validation Error (note that the CPID is unique)\r\n![seleccio_015](https://user-images.githubusercontent.com/9968427/37457150-707e09be-2841-11e8-82da-4e2586811995.png)\r\n\r\n"}}
{"actor":{"display_login":"juangallostra"}}