{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/react-admin/issues/804","repository_url":"https://api.github.com/repos/marmelab/react-admin","labels_url":"https://api.github.com/repos/marmelab/react-admin/issues/804/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/react-admin/issues/804/comments","events_url":"https://api.github.com/repos/marmelab/react-admin/issues/804/events","html_url":"https://github.com/marmelab/react-admin/issues/804","id":239442334,"node_id":"MDU6SXNzdWUyMzk0NDIzMzQ=","number":804,"title":"Add Label to <ReferenceField>","user":{"login":"remi13131","id":11832241,"node_id":"MDQ6VXNlcjExODMyMjQx","avatar_url":"https://avatars0.githubusercontent.com/u/11832241?v=4","gravatar_id":"","url":"https://api.github.com/users/remi13131","html_url":"https://github.com/remi13131","followers_url":"https://api.github.com/users/remi13131/followers","following_url":"https://api.github.com/users/remi13131/following{/other_user}","gists_url":"https://api.github.com/users/remi13131/gists{/gist_id}","starred_url":"https://api.github.com/users/remi13131/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/remi13131/subscriptions","organizations_url":"https://api.github.com/users/remi13131/orgs","repos_url":"https://api.github.com/users/remi13131/repos","events_url":"https://api.github.com/users/remi13131/events{/privacy}","received_events_url":"https://api.github.com/users/remi13131/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-06-29T11:03:20Z","updated_at":"2018-09-06T21:57:18Z","closed_at":"2017-06-30T12:51:52Z","author_association":"NONE","body":"When using ```<ReferenceField>```, it is rendering fine with ```<Datagrid>``` and the right title is added to the column. \r\n\r\nHowever, in ```<Edit>``` or ```<Show>```, where it can be useful to make a link to an associated resource, no Label is added to the field and this results in a pretty ugly output : \r\n![image](https://user-images.githubusercontent.com/11832241/27684649-2648100c-5ccb-11e7-8556-9c1e9432276c.png)\r\n\r\nI have the same result whether I add a ```label=\"Post\"``` prop to ```<ReferenceField>``` or not.\r\n\r\nI think this would be good to have a label when it is specified. "},"comment":{"url":"https://api.github.com/repos/marmelab/react-admin/issues/comments/419254457","html_url":"https://github.com/marmelab/react-admin/issues/804#issuecomment-419254457","issue_url":"https://api.github.com/repos/marmelab/react-admin/issues/804","id":419254457,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTI1NDQ1Nw==","user":{"login":"christhomas","id":827996,"node_id":"MDQ6VXNlcjgyNzk5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/827996?v=4","gravatar_id":"","url":"https://api.github.com/users/christhomas","html_url":"https://github.com/christhomas","followers_url":"https://api.github.com/users/christhomas/followers","following_url":"https://api.github.com/users/christhomas/following{/other_user}","gists_url":"https://api.github.com/users/christhomas/gists{/gist_id}","starred_url":"https://api.github.com/users/christhomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christhomas/subscriptions","organizations_url":"https://api.github.com/users/christhomas/orgs","repos_url":"https://api.github.com/users/christhomas/repos","events_url":"https://api.github.com/users/christhomas/events{/privacy}","received_events_url":"https://api.github.com/users/christhomas/received_events","type":"User","site_admin":false},"created_at":"2018-09-06T21:57:18Z","updated_at":"2018-09-06T21:57:18Z","author_association":"NONE","body":"I have a similar problem now, where in the edit mode I get the label, but in the show mode I don't get the label. I've already added addLabel to my element. Any ideas?"}}
{"actor":{"display_login":"christhomas"}}