{"action":"closed","issue":{"url":"https://api.github.com/repos/BCDevExchange/devex/issues/137","repository_url":"https://api.github.com/repos/BCDevExchange/devex","labels_url":"https://api.github.com/repos/BCDevExchange/devex/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/BCDevExchange/devex/issues/137/comments","events_url":"https://api.github.com/repos/BCDevExchange/devex/issues/137/events","html_url":"https://github.com/BCDevExchange/devex/issues/137","id":216866659,"number":137,"title":"Error when creating an opportunity when only one program exists","user":{"login":"cgat","id":3103805,"avatar_url":"https://avatars3.githubusercontent.com/u/3103805?v=3","gravatar_id":"","url":"https://api.github.com/users/cgat","html_url":"https://github.com/cgat","followers_url":"https://api.github.com/users/cgat/followers","following_url":"https://api.github.com/users/cgat/following{/other_user}","gists_url":"https://api.github.com/users/cgat/gists{/gist_id}","starred_url":"https://api.github.com/users/cgat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgat/subscriptions","organizations_url":"https://api.github.com/users/cgat/orgs","repos_url":"https://api.github.com/users/cgat/repos","events_url":"https://api.github.com/users/cgat/events{/privacy}","received_events_url":"https://api.github.com/users/cgat/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"ccoldwell","id":77068,"avatar_url":"https://avatars1.githubusercontent.com/u/77068?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoldwell","html_url":"https://github.com/ccoldwell","followers_url":"https://api.github.com/users/ccoldwell/followers","following_url":"https://api.github.com/users/ccoldwell/following{/other_user}","gists_url":"https://api.github.com/users/ccoldwell/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoldwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoldwell/subscriptions","organizations_url":"https://api.github.com/users/ccoldwell/orgs","repos_url":"https://api.github.com/users/ccoldwell/repos","events_url":"https://api.github.com/users/ccoldwell/events{/privacy}","received_events_url":"https://api.github.com/users/ccoldwell/received_events","type":"User","site_admin":false},"assignees":[{"login":"ccoldwell","id":77068,"avatar_url":"https://avatars1.githubusercontent.com/u/77068?v=3","gravatar_id":"","url":"https://api.github.com/users/ccoldwell","html_url":"https://github.com/ccoldwell","followers_url":"https://api.github.com/users/ccoldwell/followers","following_url":"https://api.github.com/users/ccoldwell/following{/other_user}","gists_url":"https://api.github.com/users/ccoldwell/gists{/gist_id}","starred_url":"https://api.github.com/users/ccoldwell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ccoldwell/subscriptions","organizations_url":"https://api.github.com/users/ccoldwell/orgs","repos_url":"https://api.github.com/users/ccoldwell/repos","events_url":"https://api.github.com/users/ccoldwell/events{/privacy}","received_events_url":"https://api.github.com/users/ccoldwell/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2017-03-24T18:16:19Z","updated_at":"2017-06-22T17:12:16Z","closed_at":"2017-06-22T17:12:16Z","body":"Steps to replicate:\r\n1. Login as Admin (in my case)\r\n2. Create a Program\r\n3. Create a Project\r\n4. Click \"Create Opporunity\"\r\n5. The \"Create\" page auto selects the single project that exists, but this auto select does not call the method that sets the selected project in the controller. When attempting to save, the follow error is presented in the console:\r\n\r\n```\r\nTypeError: Cannot read property '_id' of undefined\r\n    at Object.vm.save (opportunities.client.controller.js:284)\r\n    at Object.vm.saveme (opportunities.client.controller.js:257)\r\n    at fn (eval at compile (angular.js:1), <anonymous>:4:256)\r\n    at expensiveCheckFn (angular.js:16213)\r\n    at callback (angular.js:26592)\r\n    at Scope.$eval (angular.js:17994)\r\n    at Scope.$apply (angular.js:18094)\r\n    at HTMLAnchorElement.<anonymous> (angular.js:26597)\r\n    at defaultHandlerWrapper (angular.js:3546)\r\n    at HTMLAnchorElement.eventHandler (angular.js:3534)\r\n```"}}
{"actor":{"display_login":"ccoldwell"}}