{"action":"closed","issue":{"url":"https://api.github.com/repos/qor/qor/issues/59","labels_url":"https://api.github.com/repos/qor/qor/issues/59/labels{/name}","comments_url":"https://api.github.com/repos/qor/qor/issues/59/comments","events_url":"https://api.github.com/repos/qor/qor/issues/59/events","html_url":"https://github.com/qor/qor/issues/59","id":98526774,"number":59,"title":"select_one meta data not show","user":{"login":"xi3","id":4083134,"avatar_url":"https://avatars.githubusercontent.com/u/4083134?v=3","gravatar_id":"","url":"https://api.github.com/users/xi3","html_url":"https://github.com/xi3","followers_url":"https://api.github.com/users/xi3/followers","following_url":"https://api.github.com/users/xi3/following{/other_user}","gists_url":"https://api.github.com/users/xi3/gists{/gist_id}","starred_url":"https://api.github.com/users/xi3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xi3/subscriptions","organizations_url":"https://api.github.com/users/xi3/orgs","repos_url":"https://api.github.com/users/xi3/repos","events_url":"https://api.github.com/users/xi3/events{/privacy}","received_events_url":"https://api.github.com/users/xi3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-08-01T10:26:43Z","updated_at":"2015-08-01T22:33:59Z","closed_at":"2015-08-01T22:33:59Z","body":"```\r\ntype User struct {\r\n\tgorm.Model\r\n\tMobile string\r\n\tName   string\r\n\tRole   string\r\n}\r\n```\r\n\r\n```\r\nuser := adm.AddResource(&models.User{}, &admin.Config{Menu: []string{\"User Management\"}})\r\n\r\n\tuser.Meta(&admin.Meta{\r\n\t\tName:       \"Name\",\r\n\t\tLabel:      \"Name\",\r\n\t\tType:       \"select_one\",\r\n\t\tCollection: []string{\"test01\", \"test02\", \"test03\"},\r\n\t\tValuer: func(value interface{}, context *qor.Context) interface{} {\r\n\t\t\tif value == nil {\r\n\t\t\t\tlog.Println(\"null value\")\r\n\t\t\t\treturn nil\r\n\t\t\t}\r\n\t\t\tuser := value.(*models.User)\r\n\t\t\tlog.Println(\"user\", user)\r\n\t\t\treturn user.Name\r\n\t\t},\r\n\t})\r\n```\r\n\r\nworked for admin edit and new, but the index view is empty. (name is saved to database correctly).\r\n\r\nIf without select_one type, everything goes correctly."}}