{"action":"opened","issue":{"url":"https://api.github.com/repos/instedd/ask/issues/344","repository_url":"https://api.github.com/repos/instedd/ask","labels_url":"https://api.github.com/repos/instedd/ask/issues/344/labels{/name}","comments_url":"https://api.github.com/repos/instedd/ask/issues/344/comments","events_url":"https://api.github.com/repos/instedd/ask/issues/344/events","html_url":"https://github.com/instedd/ask/issues/344","id":191529366,"number":344,"title":"Error when starting a Survey.","user":{"login":"mmuller","id":518152,"avatar_url":"https://avatars.githubusercontent.com/u/518152?v=3","gravatar_id":"","url":"https://api.github.com/users/mmuller","html_url":"https://github.com/mmuller","followers_url":"https://api.github.com/users/mmuller/followers","following_url":"https://api.github.com/users/mmuller/following{/other_user}","gists_url":"https://api.github.com/users/mmuller/gists{/gist_id}","starred_url":"https://api.github.com/users/mmuller/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmuller/subscriptions","organizations_url":"https://api.github.com/users/mmuller/orgs","repos_url":"https://api.github.com/users/mmuller/repos","events_url":"https://api.github.com/users/mmuller/events{/privacy}","received_events_url":"https://api.github.com/users/mmuller/received_events","type":"User","site_admin":false},"labels":[{"id":414435977,"url":"https://api.github.com/repos/instedd/ask/labels/bug","name":"bug","color":"e99695","default":true},{"id":441951124,"url":"https://api.github.com/repos/instedd/ask/labels/critical","name":"critical","color":"ee0701","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-24T14:11:39Z","updated_at":"2016-11-24T14:11:39Z","closed_at":null,"body":"Found in version:\r\n0.4.0-dev-8ab670d\r\n\r\nPreconditions:\r\nThere is a Questionnaire 'Q'.\r\n'Q' has a Numeric step 'N'.\r\n\r\nReproduce steps:\r\nCreate a Survey and use 'Q' as Questionnaire.\r\nStart the Survey.\r\nGo to edit 'Q'.\r\nReplace the Numeric step 'N' with a Multiple choice step.\r\nCreate another Survey and use 'Q' as Questionnaire.\r\nStart the Survey.\r\n\r\nActual result:\r\nAn error is displayed.\r\nThe following error is logged in the browser's console:\r\n```PromiseRejectionEvent {isTrusted: true, promise: Promise, reason: TypeError: Cannot read property 'count' of undefined at t.value (http://ask-stg.instedd.org/js/a…, type: \"unhandledrejection\", target: Window…}```\r\n\r\nExpected result:\r\nThe Survey can be started properly after editing the Questionnaire.\r\n\r\nAdditional information:\r\nhttps://sentry.io/instedd/ask/issues/185511408/"}}
{"actor":{"display_login":"mmuller"}}