{"action":"created","issue":{"url":"https://api.github.com/repos/expertiza/expertiza/issues/420","repository_url":"https://api.github.com/repos/expertiza/expertiza","labels_url":"https://api.github.com/repos/expertiza/expertiza/issues/420/labels{/name}","comments_url":"https://api.github.com/repos/expertiza/expertiza/issues/420/comments","events_url":"https://api.github.com/repos/expertiza/expertiza/issues/420/events","html_url":"https://github.com/expertiza/expertiza/issues/420","id":34007641,"number":420,"title":"Instructor cannot assign an assignment to a course","user":{"login":"yangsong8","id":4420550,"avatar_url":"https://avatars.githubusercontent.com/u/4420550?v=3","gravatar_id":"","url":"https://api.github.com/users/yangsong8","html_url":"https://github.com/yangsong8","followers_url":"https://api.github.com/users/yangsong8/followers","following_url":"https://api.github.com/users/yangsong8/following{/other_user}","gists_url":"https://api.github.com/users/yangsong8/gists{/gist_id}","starred_url":"https://api.github.com/users/yangsong8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangsong8/subscriptions","organizations_url":"https://api.github.com/users/yangsong8/orgs","repos_url":"https://api.github.com/users/yangsong8/repos","events_url":"https://api.github.com/users/yangsong8/events{/privacy}","received_events_url":"https://api.github.com/users/yangsong8/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/expertiza/expertiza/labels/bug","name":"bug","color":"e11d21"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-05-21T17:54:15Z","updated_at":"2016-05-02T14:47:59Z","closed_at":"2016-05-02T14:47:59Z","body":"We came to this bug on production branch. When an instructor click the icon \"assign to a course\", we get this error message:\r\n\r\nNoMethodError in Assignment#associate_assignment_with_course\r\n\r\nShowing app/views/assignment/associate_assignment_with_course.html.erb where line #1 raised:\r\n\r\nundefined method `name' for nil:NilClass\r\nExtracted source (around line #1):\r\n\r\n1: <h1>Courses available for <%= @assignment.name %></h1>"},"comment":{"url":"https://api.github.com/repos/expertiza/expertiza/issues/comments/216255461","html_url":"https://github.com/expertiza/expertiza/issues/420#issuecomment-216255461","issue_url":"https://api.github.com/repos/expertiza/expertiza/issues/420","id":216255461,"user":{"login":"yangsong8","id":4420550,"avatar_url":"https://avatars.githubusercontent.com/u/4420550?v=3","gravatar_id":"","url":"https://api.github.com/users/yangsong8","html_url":"https://github.com/yangsong8","followers_url":"https://api.github.com/users/yangsong8/followers","following_url":"https://api.github.com/users/yangsong8/following{/other_user}","gists_url":"https://api.github.com/users/yangsong8/gists{/gist_id}","starred_url":"https://api.github.com/users/yangsong8/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yangsong8/subscriptions","organizations_url":"https://api.github.com/users/yangsong8/orgs","repos_url":"https://api.github.com/users/yangsong8/repos","events_url":"https://api.github.com/users/yangsong8/events{/privacy}","received_events_url":"https://api.github.com/users/yangsong8/received_events","type":"User","site_admin":false},"created_at":"2016-05-02T14:47:59Z","updated_at":"2016-05-02T14:47:59Z","body":"I have verified, instructors can assign an assignment to a course and remove the assignment from a course as well."}}