{"action":"created","issue":{"url":"https://api.github.com/repos/jhedstrom/DrupalDriver/issues/31","labels_url":"https://api.github.com/repos/jhedstrom/DrupalDriver/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/jhedstrom/DrupalDriver/issues/31/comments","events_url":"https://api.github.com/repos/jhedstrom/DrupalDriver/issues/31/events","html_url":"https://github.com/jhedstrom/DrupalDriver/pull/31","id":74421183,"number":31,"title":"Term Reference Field Handling","user":{"login":"kerasai","id":1098973,"avatar_url":"https://avatars.githubusercontent.com/u/1098973?v=3","gravatar_id":"","url":"https://api.github.com/users/kerasai","html_url":"https://github.com/kerasai","followers_url":"https://api.github.com/users/kerasai/followers","following_url":"https://api.github.com/users/kerasai/following{/other_user}","gists_url":"https://api.github.com/users/kerasai/gists{/gist_id}","starred_url":"https://api.github.com/users/kerasai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerasai/subscriptions","organizations_url":"https://api.github.com/users/kerasai/orgs","repos_url":"https://api.github.com/users/kerasai/repos","events_url":"https://api.github.com/users/kerasai/events{/privacy}","received_events_url":"https://api.github.com/users/kerasai/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-05-08T16:39:30Z","updated_at":"2015-05-08T17:18:04Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/jhedstrom/DrupalDriver/pulls/31","html_url":"https://github.com/jhedstrom/DrupalDriver/pull/31","diff_url":"https://github.com/jhedstrom/DrupalDriver/pull/31.diff","patch_url":"https://github.com/jhedstrom/DrupalDriver/pull/31.patch"},"body":"The current TaxonomyTermReferenceHandler just plucks the first term found by `taxonomy_get_term_by_name()`. If there are multiple terms with the same name this can cause issues when an entity is assigned a term from the wrong vocabulary.\r\n\r\nThis patch includes that attempts to determine the vocabulary/bundle for which the field is configured and restricts the `taxonomy_get_term_by_name()` call to said vocabulary.\r\n\r\nIf unable to field's configured vocabulary, behavior will revert to the current behavior of looking up across all vocabularies."},"comment":{"url":"https://api.github.com/repos/jhedstrom/DrupalDriver/issues/comments/100302617","html_url":"https://github.com/jhedstrom/DrupalDriver/pull/31#issuecomment-100302617","issue_url":"https://api.github.com/repos/jhedstrom/DrupalDriver/issues/31","id":100302617,"user":{"login":"kerasai","id":1098973,"avatar_url":"https://avatars.githubusercontent.com/u/1098973?v=3","gravatar_id":"","url":"https://api.github.com/users/kerasai","html_url":"https://github.com/kerasai","followers_url":"https://api.github.com/users/kerasai/followers","following_url":"https://api.github.com/users/kerasai/following{/other_user}","gists_url":"https://api.github.com/users/kerasai/gists{/gist_id}","starred_url":"https://api.github.com/users/kerasai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kerasai/subscriptions","organizations_url":"https://api.github.com/users/kerasai/orgs","repos_url":"https://api.github.com/users/kerasai/repos","events_url":"https://api.github.com/users/kerasai/events{/privacy}","received_events_url":"https://api.github.com/users/kerasai/received_events","type":"User","site_admin":false},"created_at":"2015-05-08T17:18:04Z","updated_at":"2015-05-08T17:18:04Z","body":"The code suggests a very similar change to Drupal\\Driver\\Fields\\Drupal8\\TaxonomyTermReferenceHandler could be made.\r\n\r\nI don't currently have a D8 site in front of me to develop/test against. I'll try to take a look in the near future."}}