{"action":"created","issue":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/1017","labels_url":"https://api.github.com/repos/snipe/snipe-it/issues/1017/labels{/name}","comments_url":"https://api.github.com/repos/snipe/snipe-it/issues/1017/comments","events_url":"https://api.github.com/repos/snipe/snipe-it/issues/1017/events","html_url":"https://github.com/snipe/snipe-it/issues/1017","id":99089440,"number":1017,"title":"Unable to delete locations","user":{"login":"goetzk","id":8732490,"avatar_url":"https://avatars.githubusercontent.com/u/8732490?v=3","gravatar_id":"","url":"https://api.github.com/users/goetzk","html_url":"https://github.com/goetzk","followers_url":"https://api.github.com/users/goetzk/followers","following_url":"https://api.github.com/users/goetzk/following{/other_user}","gists_url":"https://api.github.com/users/goetzk/gists{/gist_id}","starred_url":"https://api.github.com/users/goetzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goetzk/subscriptions","organizations_url":"https://api.github.com/users/goetzk/orgs","repos_url":"https://api.github.com/users/goetzk/repos","events_url":"https://api.github.com/users/goetzk/events{/privacy}","received_events_url":"https://api.github.com/users/goetzk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/snipe/snipe-it/milestones/6","html_url":"https://github.com/snipe/snipe-it/milestones/v.2.0","labels_url":"https://api.github.com/repos/snipe/snipe-it/milestones/6/labels","id":1093627,"number":6,"title":"v.2.0","description":"","creator":{"login":"snipe","id":197404,"avatar_url":"https://avatars.githubusercontent.com/u/197404?v=3","gravatar_id":"","url":"https://api.github.com/users/snipe","html_url":"https://github.com/snipe","followers_url":"https://api.github.com/users/snipe/followers","following_url":"https://api.github.com/users/snipe/following{/other_user}","gists_url":"https://api.github.com/users/snipe/gists{/gist_id}","starred_url":"https://api.github.com/users/snipe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/snipe/subscriptions","organizations_url":"https://api.github.com/users/snipe/orgs","repos_url":"https://api.github.com/users/snipe/repos","events_url":"https://api.github.com/users/snipe/events{/privacy}","received_events_url":"https://api.github.com/users/snipe/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":38,"state":"open","created_at":"2015-05-02T19:38:33Z","updated_at":"2015-08-05T02:06:02Z","due_on":"2015-08-21T07:00:00Z","closed_at":null},"comments":7,"created_at":"2015-08-05T00:29:00Z","updated_at":"2015-08-05T08:28:10Z","closed_at":"2015-08-05T02:06:02Z","body":"When trying to delete a location I'm getting 'Server Error: 500 (Internal Server Error)'.\r\n\r\napache2handler log records\r\n```\r\n[2015-08-05 00:22:01] production.ERROR: exception 'Symfony\\Component\\Debug\\Exception\\FatalErrorException' with message 'Call to a member function count() on a non-object' in /srv/snipe-it/app/controllers/admin/LocationsController.php:192\r\nStack trace:\r\n#0 [internal function]: Illuminate\\Exception\\Handler->handleShutdown()\r\n#1 {main} [] []\r\n```\r\n\r\nI tested the following situations:\r\n- location with asset\r\n- location without assets\r\n- location as a top level\r\n- location as a sub location"},"comment":{"url":"https://api.github.com/repos/snipe/snipe-it/issues/comments/127913471","html_url":"https://github.com/snipe/snipe-it/issues/1017#issuecomment-127913471","issue_url":"https://api.github.com/repos/snipe/snipe-it/issues/1017","id":127913471,"user":{"login":"goetzk","id":8732490,"avatar_url":"https://avatars.githubusercontent.com/u/8732490?v=3","gravatar_id":"","url":"https://api.github.com/users/goetzk","html_url":"https://github.com/goetzk","followers_url":"https://api.github.com/users/goetzk/followers","following_url":"https://api.github.com/users/goetzk/following{/other_user}","gists_url":"https://api.github.com/users/goetzk/gists{/gist_id}","starred_url":"https://api.github.com/users/goetzk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/goetzk/subscriptions","organizations_url":"https://api.github.com/users/goetzk/orgs","repos_url":"https://api.github.com/users/goetzk/repos","events_url":"https://api.github.com/users/goetzk/events{/privacy}","received_events_url":"https://api.github.com/users/goetzk/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T08:28:10Z","updated_at":"2015-08-05T08:28:10Z","body":"On 5/08/2015 12:00, madd15 wrote:\n> I do believe this is fixed on the current 2.0 branch\nthanks!\nI will do an upgrade soon to check.\n\n"}}