{"action":"opened","issue":{"url":"https://api.github.com/repos/nittro/nittro/issues/2","repository_url":"https://api.github.com/repos/nittro/nittro","labels_url":"https://api.github.com/repos/nittro/nittro/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/nittro/nittro/issues/2/comments","events_url":"https://api.github.com/repos/nittro/nittro/issues/2/events","html_url":"https://github.com/nittro/nittro/issues/2","id":147254142,"number":2,"title":"Forms with multiple submit buttons","user":{"login":"francma","id":8504996,"avatar_url":"https://avatars.githubusercontent.com/u/8504996?v=3","gravatar_id":"","url":"https://api.github.com/users/francma","html_url":"https://github.com/francma","followers_url":"https://api.github.com/users/francma/followers","following_url":"https://api.github.com/users/francma/following{/other_user}","gists_url":"https://api.github.com/users/francma/gists{/gist_id}","starred_url":"https://api.github.com/users/francma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francma/subscriptions","organizations_url":"https://api.github.com/users/francma/orgs","repos_url":"https://api.github.com/users/francma/repos","events_url":"https://api.github.com/users/francma/events{/privacy}","received_events_url":"https://api.github.com/users/francma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-10T19:12:05Z","updated_at":"2016-04-10T19:12:05Z","closed_at":null,"body":"`$form->addSubmit('submit')->onClick[] = [$this, 'doSubmit'];`\r\n`$form->addSubmit('save')->onClick[] = [$this, 'doSave'];`\r\nBoth buttons trigger `doSave()`, with last button added to form as an argument.\r\n\r\n`$form->onSubmit[] = [$this, 'formSubmit'];`\r\nTriggers `formSubmit()` with last button added to form as an argument.\r\n\r\nTested on https://github.com/nittro/application/tree/master/examples"}}