{"action":"created","issue":{"url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/issues/8","repository_url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants","labels_url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/issues/8/labels{/name}","comments_url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/issues/8/comments","events_url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/issues/8/events","html_url":"https://github.com/backdrop-contrib/simple_access_grants/issues/8","id":191765284,"number":8,"title":"Integrity constraint violation","user":{"login":"laryn","id":871421,"avatar_url":"https://avatars.githubusercontent.com/u/871421?v=3","gravatar_id":"","url":"https://api.github.com/users/laryn","html_url":"https://github.com/laryn","followers_url":"https://api.github.com/users/laryn/followers","following_url":"https://api.github.com/users/laryn/following{/other_user}","gists_url":"https://api.github.com/users/laryn/gists{/gist_id}","starred_url":"https://api.github.com/users/laryn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/laryn/subscriptions","organizations_url":"https://api.github.com/users/laryn/orgs","repos_url":"https://api.github.com/users/laryn/repos","events_url":"https://api.github.com/users/laryn/events{/privacy}","received_events_url":"https://api.github.com/users/laryn/received_events","type":"User","site_admin":false},"labels":[{"id":377309999,"url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-25T21:08:33Z","updated_at":"2016-11-28T08:23:25Z","closed_at":null,"body":"I was testing this for a project and when I set up a profile and then try to create content of that type from the site admin account, I get an error when I try to save:\r\n\r\n`PDOException: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'gid' cannot be null: INSERT INTO {node_access} (nid, realm, gid, grant_view, grant_update, grant_delete) VALUES ...`"},"comment":{"url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/issues/comments/263209659","html_url":"https://github.com/backdrop-contrib/simple_access_grants/issues/8#issuecomment-263209659","issue_url":"https://api.github.com/repos/backdrop-contrib/simple_access_grants/issues/8","id":263209659,"user":{"login":"Graham-72","id":10559274,"avatar_url":"https://avatars.githubusercontent.com/u/10559274?v=3","gravatar_id":"","url":"https://api.github.com/users/Graham-72","html_url":"https://github.com/Graham-72","followers_url":"https://api.github.com/users/Graham-72/followers","following_url":"https://api.github.com/users/Graham-72/following{/other_user}","gists_url":"https://api.github.com/users/Graham-72/gists{/gist_id}","starred_url":"https://api.github.com/users/Graham-72/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Graham-72/subscriptions","organizations_url":"https://api.github.com/users/Graham-72/orgs","repos_url":"https://api.github.com/users/Graham-72/repos","events_url":"https://api.github.com/users/Graham-72/events{/privacy}","received_events_url":"https://api.github.com/users/Graham-72/received_events","type":"User","site_admin":false},"created_at":"2016-11-28T08:23:25Z","updated_at":"2016-11-28T08:23:25Z","body":"'gid' requires a numerical value and for this the module uses a role ID which it stores in its config settings. This role ID needs to be added or deleted when a user role is added or removed from the site. The fix would seem to be to use hook_user_role_insert and hook_user_role_delete functions."}}
{"actor":{"display_login":"Graham-72"}}