{"action":"closed","issue":{"url":"https://api.github.com/repos/aryehdesigns/statamic-fetch/issues/4","repository_url":"https://api.github.com/repos/aryehdesigns/statamic-fetch","labels_url":"https://api.github.com/repos/aryehdesigns/statamic-fetch/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/aryehdesigns/statamic-fetch/issues/4/comments","events_url":"https://api.github.com/repos/aryehdesigns/statamic-fetch/issues/4/events","html_url":"https://github.com/aryehdesigns/statamic-fetch/issues/4","id":194285561,"number":4,"title":"Fieldtype Grid","user":{"login":"bognarl","id":24246069,"avatar_url":"https://avatars.githubusercontent.com/u/24246069?v=3","gravatar_id":"","url":"https://api.github.com/users/bognarl","html_url":"https://github.com/bognarl","followers_url":"https://api.github.com/users/bognarl/followers","following_url":"https://api.github.com/users/bognarl/following{/other_user}","gists_url":"https://api.github.com/users/bognarl/gists{/gist_id}","starred_url":"https://api.github.com/users/bognarl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bognarl/subscriptions","organizations_url":"https://api.github.com/users/bognarl/orgs","repos_url":"https://api.github.com/users/bognarl/repos","events_url":"https://api.github.com/users/bognarl/events{/privacy}","received_events_url":"https://api.github.com/users/bognarl/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-08T09:27:52Z","updated_at":"2016-12-30T15:56:49Z","closed_at":"2016-12-30T15:56:49Z","body":"Hi. I just realized that if I use Grid type field in my collection Fetch only returns the last item of the array because of the `$array->collapse()` in `Fetch.php:47`.\r\n\r\n**This is what it looks like in the md:**\r\n```\r\noutput_fields:\r\n  - \r\n    name: Some name\r\n    cell: G2\r\n  - \r\n    name: Some other name\r\n    cell: H2\r\n  - \r\n    name: Some other other name\r\n    cell: I2\r\n```\r\n\r\n**And this is what Fetch returns:**\r\n```\r\n  \"output_fields\": {\r\n    \"name\": \"Some other other name\",\r\n    \"cell\": \"I2\"\r\n  },\r\n```\r\n\r\nDo you have any idea on how to prevent this? I don't want to remove `$array->collapse()` as it is really useful on other fields."}}
{"actor":{"display_login":"aryehdesigns"}}