{"action":"created","issue":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/13336","repository_url":"https://api.github.com/repos/civicrm/civicrm-core","labels_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/13336/labels{/name}","comments_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/13336/comments","events_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/13336/events","html_url":"https://github.com/civicrm/civicrm-core/pull/13336","id":393109461,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQwMjIwODAz","number":13336,"title":"Don't crash with missing class if action is not defined when opening new case","user":{"login":"mattwire","id":2052161,"node_id":"MDQ6VXNlcjIwNTIxNjE=","avatar_url":"https://avatars1.githubusercontent.com/u/2052161?v=4","gravatar_id":"","url":"https://api.github.com/users/mattwire","html_url":"https://github.com/mattwire","followers_url":"https://api.github.com/users/mattwire/followers","following_url":"https://api.github.com/users/mattwire/following{/other_user}","gists_url":"https://api.github.com/users/mattwire/gists{/gist_id}","starred_url":"https://api.github.com/users/mattwire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mattwire/subscriptions","organizations_url":"https://api.github.com/users/mattwire/orgs","repos_url":"https://api.github.com/users/mattwire/repos","events_url":"https://api.github.com/users/mattwire/events{/privacy}","received_events_url":"https://api.github.com/users/mattwire/received_events","type":"User","site_admin":false},"labels":[{"id":246037889,"node_id":"MDU6TGFiZWwyNDYwMzc4ODk=","url":"https://api.github.com/repos/civicrm/civicrm-core/labels/master","name":"master","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-12-20T16:03:32Z","updated_at":"2018-12-21T15:52:56Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/civicrm/civicrm-core/pulls/13336","html_url":"https://github.com/civicrm/civicrm-core/pull/13336","diff_url":"https://github.com/civicrm/civicrm-core/pull/13336.diff","patch_url":"https://github.com/civicrm/civicrm-core/pull/13336.patch"},"body":"Overview\r\n----------------------------------------\r\nIf you try and open a case without specifying the action you get an error about missing class because the classname is concatenated based on the activity type name.  But the activity type name is not defined if the action is not specified.  eg. http://localhost:8080/civicrm/case/add?reset=1&atype=13&context=standalone\r\n\r\nBefore\r\n----------------------------------------\r\nCrash if action not defined. Inconsistent checking for $this->_activityTypeName in some functions (eg. postProcess) but not others.\r\n\r\nAfter\r\n----------------------------------------\r\nAction defaults to ADD. Check if $this->_activityTypeName is defined before trying to use it.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/civicrm/civicrm-core/issues/comments/449424389","html_url":"https://github.com/civicrm/civicrm-core/pull/13336#issuecomment-449424389","issue_url":"https://api.github.com/repos/civicrm/civicrm-core/issues/13336","id":449424389,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0OTQyNDM4OQ==","user":{"login":"colemanw","id":2874912,"node_id":"MDQ6VXNlcjI4NzQ5MTI=","avatar_url":"https://avatars3.githubusercontent.com/u/2874912?v=4","gravatar_id":"","url":"https://api.github.com/users/colemanw","html_url":"https://github.com/colemanw","followers_url":"https://api.github.com/users/colemanw/followers","following_url":"https://api.github.com/users/colemanw/following{/other_user}","gists_url":"https://api.github.com/users/colemanw/gists{/gist_id}","starred_url":"https://api.github.com/users/colemanw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colemanw/subscriptions","organizations_url":"https://api.github.com/users/colemanw/orgs","repos_url":"https://api.github.com/users/colemanw/repos","events_url":"https://api.github.com/users/colemanw/events{/privacy}","received_events_url":"https://api.github.com/users/colemanw/received_events","type":"User","site_admin":false},"created_at":"2018-12-21T15:52:56Z","updated_at":"2018-12-21T15:52:56Z","author_association":"MEMBER","body":"@civicrm-builder retest this please"}}
{"actor":{"display_login":"colemanw"}}