{"action":"opened","issue":{"url":"https://api.github.com/repos/owncloud/contacts/issues/1034","labels_url":"https://api.github.com/repos/owncloud/contacts/issues/1034/labels{/name}","comments_url":"https://api.github.com/repos/owncloud/contacts/issues/1034/comments","events_url":"https://api.github.com/repos/owncloud/contacts/issues/1034/events","html_url":"https://github.com/owncloud/contacts/issues/1034","id":104693802,"number":1034,"title":"Organisation contact surname contains firstname, surname and semicolons","user":{"login":"rexxmagnus","id":1889538,"avatar_url":"https://avatars.githubusercontent.com/u/1889538?v=3","gravatar_id":"","url":"https://api.github.com/users/rexxmagnus","html_url":"https://github.com/rexxmagnus","followers_url":"https://api.github.com/users/rexxmagnus/followers","following_url":"https://api.github.com/users/rexxmagnus/following{/other_user}","gists_url":"https://api.github.com/users/rexxmagnus/gists{/gist_id}","starred_url":"https://api.github.com/users/rexxmagnus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rexxmagnus/subscriptions","organizations_url":"https://api.github.com/users/rexxmagnus/orgs","repos_url":"https://api.github.com/users/rexxmagnus/repos","events_url":"https://api.github.com/users/rexxmagnus/events{/privacy}","received_events_url":"https://api.github.com/users/rexxmagnus/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-03T13:30:00Z","updated_at":"2015-09-03T13:30:00Z","closed_at":null,"body":"When creating a new contact with an organisation name in version 0.4.0.0 under owncloud 8.1.1 if you enter the full name in the presented name box, the surname gets constructed with the firstname, surname, and extraneous semicolons (;) in the field. The first name field remains empty.\r\n\r\nOnce the contact is created, you can't click it to edit it and are given the following JS error:\r\n\r\nTypeError: this.getPreferredValue(...).clean is not a function\r\norg: this.getPreferredValue('ORG', []).clean('').join(', '), // TODO Add parts i...\r\n\r\neg: create a contact with the name \"test contact\"\r\nFirstname is empty,\r\nSurname is: contact;test;;;\r\nDisplayed name is also: contact;test;;;\r\n\r\nThis only happens if you set an organisation name when creating the contact."}}