{"action":"created","comment":{"url":"https://api.github.com/repos/ezsystems/repository-forms/pulls/comments/47912395","id":47912395,"diff_hunk":"@@ -38,20 +38,22 @@ public static function getSubscribedEvents()\n     public function processDefaultAction(FormActionEvent $event)\n     {\n         // Don't update anything if we just want to cancel the draft.\n-        if ($event->getClickedButton() === 'removeDraft') {\n+        // Don't do the default action when saving is specified, as it's the same action and shouldn't be done twice.\n+        if (in_array($event->getClickedButton(), ['removeDraft', 'saveRole'])) {","path":"lib/Form/Processor/RoleFormProcessor.php","position":null,"original_position":6,"commit_id":"7cf2c78c4434fd4ade37eaa05e80930cdb791fd6","original_commit_id":"ee3e352dc07fe5dcc2ce096ddb15898fd9a3f1dd","user":{"login":"glye","id":289744,"avatar_url":"https://avatars.githubusercontent.com/u/289744?v=3","gravatar_id":"","url":"https://api.github.com/users/glye","html_url":"https://github.com/glye","followers_url":"https://api.github.com/users/glye/followers","following_url":"https://api.github.com/users/glye/following{/other_user}","gists_url":"https://api.github.com/users/glye/gists{/gist_id}","starred_url":"https://api.github.com/users/glye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glye/subscriptions","organizations_url":"https://api.github.com/users/glye/orgs","repos_url":"https://api.github.com/users/glye/repos","events_url":"https://api.github.com/users/glye/events{/privacy}","received_events_url":"https://api.github.com/users/glye/received_events","type":"User","site_admin":false},"body":"Ok, done.","created_at":"2015-12-17T14:42:15Z","updated_at":"2015-12-17T14:42:15Z","html_url":"https://github.com/ezsystems/repository-forms/pull/65#discussion_r47912395","pull_request_url":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65","_links":{"self":{"href":"https://api.github.com/repos/ezsystems/repository-forms/pulls/comments/47912395"},"html":{"href":"https://github.com/ezsystems/repository-forms/pull/65#discussion_r47912395"},"pull_request":{"href":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65"}}},"pull_request":{"url":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65","id":52865526,"html_url":"https://github.com/ezsystems/repository-forms/pull/65","diff_url":"https://github.com/ezsystems/repository-forms/pull/65.diff","patch_url":"https://github.com/ezsystems/repository-forms/pull/65.patch","issue_url":"https://api.github.com/repos/ezsystems/repository-forms/issues/65","number":65,"state":"open","locked":false,"title":"Fix EZP-25203: Pressing <Enter> when creating a role saves the role but don't publish it","user":{"login":"glye","id":289744,"avatar_url":"https://avatars.githubusercontent.com/u/289744?v=3","gravatar_id":"","url":"https://api.github.com/users/glye","html_url":"https://github.com/glye","followers_url":"https://api.github.com/users/glye/followers","following_url":"https://api.github.com/users/glye/following{/other_user}","gists_url":"https://api.github.com/users/glye/gists{/gist_id}","starred_url":"https://api.github.com/users/glye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/glye/subscriptions","organizations_url":"https://api.github.com/users/glye/orgs","repos_url":"https://api.github.com/users/glye/repos","events_url":"https://api.github.com/users/glye/events{/privacy}","received_events_url":"https://api.github.com/users/glye/received_events","type":"User","site_admin":false},"body":"> Fixes https://jira.ez.no/browse/EZP-25203\r\n> Also required: https://github.com/ezsystems/PlatformUIBundle/pull/465\r\n> Status: Ready for review\r\n\r\nLet the default action call the save role action. Let the save role action both save and publish.","created_at":"2015-12-07T16:20:20Z","updated_at":"2015-12-17T14:42:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1f4348045ea368c1f6562d41f7aef5505d2d15c1","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65/commits","review_comments_url":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65/comments","review_comment_url":"https://api.github.com/repos/ezsystems/repository-forms/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ezsystems/repository-forms/issues/65/comments","statuses_url":"https://api.github.com/repos/ezsystems/repository-forms/statuses/7cf2c78c4434fd4ade37eaa05e80930cdb791fd6","head":{"label":"ezsystems:ezp-25203_press_enter_should_publish_role","ref":"ezp-25203_press_enter_should_publish_role","sha":"7cf2c78c4434fd4ade37eaa05e80930cdb791fd6","user":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":34457958,"name":"repository-forms","full_name":"ezsystems/repository-forms","owner":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/repository-forms","description":"","fork":false,"url":"https://api.github.com/repos/ezsystems/repository-forms","forks_url":"https://api.github.com/repos/ezsystems/repository-forms/forks","keys_url":"https://api.github.com/repos/ezsystems/repository-forms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/repository-forms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/repository-forms/teams","hooks_url":"https://api.github.com/repos/ezsystems/repository-forms/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/repository-forms/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/repository-forms/events","assignees_url":"https://api.github.com/repos/ezsystems/repository-forms/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/repository-forms/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/repository-forms/tags","blobs_url":"https://api.github.com/repos/ezsystems/repository-forms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/repository-forms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/repository-forms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/repository-forms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/repository-forms/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/repository-forms/languages","stargazers_url":"https://api.github.com/repos/ezsystems/repository-forms/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/repository-forms/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/repository-forms/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/repository-forms/subscription","commits_url":"https://api.github.com/repos/ezsystems/repository-forms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/repository-forms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/repository-forms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/repository-forms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/repository-forms/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/repository-forms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/repository-forms/merges","archive_url":"https://api.github.com/repos/ezsystems/repository-forms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/repository-forms/downloads","issues_url":"https://api.github.com/repos/ezsystems/repository-forms/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/repository-forms/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/repository-forms/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/repository-forms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/repository-forms/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/repository-forms/releases{/id}","created_at":"2015-04-23T13:30:07Z","updated_at":"2015-12-01T21:37:42Z","pushed_at":"2015-12-17T14:40:43Z","git_url":"git://github.com/ezsystems/repository-forms.git","ssh_url":"git@github.com:ezsystems/repository-forms.git","clone_url":"https://github.com/ezsystems/repository-forms.git","svn_url":"https://github.com/ezsystems/repository-forms","homepage":null,"size":476,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":2,"default_branch":"master"}},"base":{"label":"ezsystems:master","ref":"master","sha":"50842f705cd7d197aa19910ac05f319d50b39f47","user":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"repo":{"id":34457958,"name":"repository-forms","full_name":"ezsystems/repository-forms","owner":{"login":"ezsystems","id":295311,"avatar_url":"https://avatars.githubusercontent.com/u/295311?v=3","gravatar_id":"","url":"https://api.github.com/users/ezsystems","html_url":"https://github.com/ezsystems","followers_url":"https://api.github.com/users/ezsystems/followers","following_url":"https://api.github.com/users/ezsystems/following{/other_user}","gists_url":"https://api.github.com/users/ezsystems/gists{/gist_id}","starred_url":"https://api.github.com/users/ezsystems/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ezsystems/subscriptions","organizations_url":"https://api.github.com/users/ezsystems/orgs","repos_url":"https://api.github.com/users/ezsystems/repos","events_url":"https://api.github.com/users/ezsystems/events{/privacy}","received_events_url":"https://api.github.com/users/ezsystems/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ezsystems/repository-forms","description":"","fork":false,"url":"https://api.github.com/repos/ezsystems/repository-forms","forks_url":"https://api.github.com/repos/ezsystems/repository-forms/forks","keys_url":"https://api.github.com/repos/ezsystems/repository-forms/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ezsystems/repository-forms/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ezsystems/repository-forms/teams","hooks_url":"https://api.github.com/repos/ezsystems/repository-forms/hooks","issue_events_url":"https://api.github.com/repos/ezsystems/repository-forms/issues/events{/number}","events_url":"https://api.github.com/repos/ezsystems/repository-forms/events","assignees_url":"https://api.github.com/repos/ezsystems/repository-forms/assignees{/user}","branches_url":"https://api.github.com/repos/ezsystems/repository-forms/branches{/branch}","tags_url":"https://api.github.com/repos/ezsystems/repository-forms/tags","blobs_url":"https://api.github.com/repos/ezsystems/repository-forms/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ezsystems/repository-forms/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ezsystems/repository-forms/git/refs{/sha}","trees_url":"https://api.github.com/repos/ezsystems/repository-forms/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ezsystems/repository-forms/statuses/{sha}","languages_url":"https://api.github.com/repos/ezsystems/repository-forms/languages","stargazers_url":"https://api.github.com/repos/ezsystems/repository-forms/stargazers","contributors_url":"https://api.github.com/repos/ezsystems/repository-forms/contributors","subscribers_url":"https://api.github.com/repos/ezsystems/repository-forms/subscribers","subscription_url":"https://api.github.com/repos/ezsystems/repository-forms/subscription","commits_url":"https://api.github.com/repos/ezsystems/repository-forms/commits{/sha}","git_commits_url":"https://api.github.com/repos/ezsystems/repository-forms/git/commits{/sha}","comments_url":"https://api.github.com/repos/ezsystems/repository-forms/comments{/number}","issue_comment_url":"https://api.github.com/repos/ezsystems/repository-forms/issues/comments{/number}","contents_url":"https://api.github.com/repos/ezsystems/repository-forms/contents/{+path}","compare_url":"https://api.github.com/repos/ezsystems/repository-forms/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ezsystems/repository-forms/merges","archive_url":"https://api.github.com/repos/ezsystems/repository-forms/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ezsystems/repository-forms/downloads","issues_url":"https://api.github.com/repos/ezsystems/repository-forms/issues{/number}","pulls_url":"https://api.github.com/repos/ezsystems/repository-forms/pulls{/number}","milestones_url":"https://api.github.com/repos/ezsystems/repository-forms/milestones{/number}","notifications_url":"https://api.github.com/repos/ezsystems/repository-forms/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ezsystems/repository-forms/labels{/name}","releases_url":"https://api.github.com/repos/ezsystems/repository-forms/releases{/id}","created_at":"2015-04-23T13:30:07Z","updated_at":"2015-12-01T21:37:42Z","pushed_at":"2015-12-17T14:40:43Z","git_url":"git://github.com/ezsystems/repository-forms.git","ssh_url":"git@github.com:ezsystems/repository-forms.git","clone_url":"https://github.com/ezsystems/repository-forms.git","svn_url":"https://github.com/ezsystems/repository-forms","homepage":null,"size":476,"stargazers_count":2,"watchers_count":2,"language":"PHP","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":6,"forks":6,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65"},"html":{"href":"https://github.com/ezsystems/repository-forms/pull/65"},"issue":{"href":"https://api.github.com/repos/ezsystems/repository-forms/issues/65"},"comments":{"href":"https://api.github.com/repos/ezsystems/repository-forms/issues/65/comments"},"review_comments":{"href":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65/comments"},"review_comment":{"href":"https://api.github.com/repos/ezsystems/repository-forms/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ezsystems/repository-forms/pulls/65/commits"},"statuses":{"href":"https://api.github.com/repos/ezsystems/repository-forms/statuses/7cf2c78c4434fd4ade37eaa05e80930cdb791fd6"}}}}