{"action":"closed","issue":{"url":"https://api.github.com/repos/YaleSTC/reservations/issues/1502","repository_url":"https://api.github.com/repos/YaleSTC/reservations","labels_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1502/labels{/name}","comments_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1502/comments","events_url":"https://api.github.com/repos/YaleSTC/reservations/issues/1502/events","html_url":"https://github.com/YaleSTC/reservations/issues/1502","id":133580525,"number":1502,"title":"Directly accessing new reservation page with empty cart causes Rails error","user":{"login":"AlanLiu96","id":7689776,"avatar_url":"https://avatars.githubusercontent.com/u/7689776?v=3","gravatar_id":"","url":"https://api.github.com/users/AlanLiu96","html_url":"https://github.com/AlanLiu96","followers_url":"https://api.github.com/users/AlanLiu96/followers","following_url":"https://api.github.com/users/AlanLiu96/following{/other_user}","gists_url":"https://api.github.com/users/AlanLiu96/gists{/gist_id}","starred_url":"https://api.github.com/users/AlanLiu96/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AlanLiu96/subscriptions","organizations_url":"https://api.github.com/users/AlanLiu96/orgs","repos_url":"https://api.github.com/users/AlanLiu96/repos","events_url":"https://api.github.com/users/AlanLiu96/events{/privacy}","received_events_url":"https://api.github.com/users/AlanLiu96/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/3%20-%20In%20Review","name":"3 - In Review","color":"CCCCCC"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/diff:%201","name":"diff: 1","color":"ffffdd"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/pri:%202","name":"pri: 2","color":"ffaaaa"},{"url":"https://api.github.com/repos/YaleSTC/reservations/labels/type:%20bug","name":"type: bug","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":{"login":"zeffman","id":8558654,"avatar_url":"https://avatars.githubusercontent.com/u/8558654?v=3","gravatar_id":"","url":"https://api.github.com/users/zeffman","html_url":"https://github.com/zeffman","followers_url":"https://api.github.com/users/zeffman/followers","following_url":"https://api.github.com/users/zeffman/following{/other_user}","gists_url":"https://api.github.com/users/zeffman/gists{/gist_id}","starred_url":"https://api.github.com/users/zeffman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zeffman/subscriptions","organizations_url":"https://api.github.com/users/zeffman/orgs","repos_url":"https://api.github.com/users/zeffman/repos","events_url":"https://api.github.com/users/zeffman/events{/privacy}","received_events_url":"https://api.github.com/users/zeffman/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/YaleSTC/reservations/milestones/43","html_url":"https://github.com/YaleSTC/reservations/milestones/5.5.6","labels_url":"https://api.github.com/repos/YaleSTC/reservations/milestones/43/labels","id":1557158,"number":43,"title":"5.5.6","description":"Next patch for v5.5","creator":{"login":"orenyk","id":901808,"avatar_url":"https://avatars.githubusercontent.com/u/901808?v=3","gravatar_id":"","url":"https://api.github.com/users/orenyk","html_url":"https://github.com/orenyk","followers_url":"https://api.github.com/users/orenyk/followers","following_url":"https://api.github.com/users/orenyk/following{/other_user}","gists_url":"https://api.github.com/users/orenyk/gists{/gist_id}","starred_url":"https://api.github.com/users/orenyk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/orenyk/subscriptions","organizations_url":"https://api.github.com/users/orenyk/orgs","repos_url":"https://api.github.com/users/orenyk/repos","events_url":"https://api.github.com/users/orenyk/events{/privacy}","received_events_url":"https://api.github.com/users/orenyk/received_events","type":"User","site_admin":false},"open_issues":4,"closed_issues":4,"state":"open","created_at":"2016-02-02T00:20:57Z","updated_at":"2016-02-23T03:59:47Z","due_on":"2016-02-29T05:00:00Z","closed_at":null},"comments":2,"created_at":"2016-02-14T21:13:37Z","updated_at":"2016-02-23T03:59:47Z","closed_at":"2016-02-23T03:59:47Z","body":"Steps to reproduce:\r\n1. empty your cart\r\n2. in your browser url go to \"[reservations URL]/reservations/new\"\r\n\r\nExpected Result:\r\nredirected to catalog\r\n\r\nActual result:\r\n![selection_013](https://cloud.githubusercontent.com/assets/7689776/13036448/9d41d2d6-d335-11e5-896c-3a1fd4380b5f.png)\r\n\r\nLooks like the fix would be to redirect to catalog if back isn't set. \r\nMight be related to #1235 \r\n"}}