{"action":"created","issue":{"url":"https://api.github.com/repos/engram-design/FeedMe/issues/24","labels_url":"https://api.github.com/repos/engram-design/FeedMe/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/engram-design/FeedMe/issues/24/comments","events_url":"https://api.github.com/repos/engram-design/FeedMe/issues/24/events","html_url":"https://github.com/engram-design/FeedMe/issues/24","id":123715158,"number":24,"title":"Importing data into matrix field doesn't create new blocks","user":{"login":"Lighty46","id":9569652,"avatar_url":"https://avatars.githubusercontent.com/u/9569652?v=3","gravatar_id":"","url":"https://api.github.com/users/Lighty46","html_url":"https://github.com/Lighty46","followers_url":"https://api.github.com/users/Lighty46/followers","following_url":"https://api.github.com/users/Lighty46/following{/other_user}","gists_url":"https://api.github.com/users/Lighty46/gists{/gist_id}","starred_url":"https://api.github.com/users/Lighty46/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lighty46/subscriptions","organizations_url":"https://api.github.com/users/Lighty46/orgs","repos_url":"https://api.github.com/users/Lighty46/repos","events_url":"https://api.github.com/users/Lighty46/events{/privacy}","received_events_url":"https://api.github.com/users/Lighty46/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-23T19:57:32Z","updated_at":"2015-12-24T13:00:29Z","closed_at":null,"body":"I'm having an issue when I try to import some fields from my XML feed into a matrix field made up of 3 date fields (1 date and 2 time). Here is a simplified version:\r\n\r\n```\r\n...\r\n<item>\r\n\r\n  <eventDate>\r\n    <date>22/12/2015</date>\r\n    <startTime>12:00</startTime>\r\n    <endTime>15:00</endTime>\r\n  </eventDate>\r\n\r\n  <eventDate>\r\n    <date>22/12/2015</date>\r\n    <startTime>12:00</startTime>\r\n    <endTime>15:00</endTime>\r\n  </eventDate>\r\n\r\n</item>\r\n\r\n<item>\r\n\r\n  <eventDate>\r\n    <date>22/12/2015</date>\r\n    <startTime>12:00</startTime>\r\n    <endTime>15:00</endTime>\r\n  </eventDate>\r\n\r\n</item>\r\n....\r\n```\r\n*e.g.*\r\n`<date> -> matrixField.date`\r\n`<startTime> -> matrixField.startTime`\r\n`<endTime> -> matrixField.endTime`\r\n\r\nThe problem is that it doesn't create a new block when there are multiple `eventDate`'s ... It works if I only have one field in the matrix, but the second there are multiple it just replaces the contents of the first block with the next. I have also tried this with a table field and have had the same results.\r\n\r\n*Note: I tried to send you a support request through the dashboard but I'm on localhost so I don't think it worked.*\r\n\r\nAny suggestions? Cheers.\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/engram-design/FeedMe/issues/comments/167106972","html_url":"https://github.com/engram-design/FeedMe/issues/24#issuecomment-167106972","issue_url":"https://api.github.com/repos/engram-design/FeedMe/issues/24","id":167106972,"user":{"login":"Lighty46","id":9569652,"avatar_url":"https://avatars.githubusercontent.com/u/9569652?v=3","gravatar_id":"","url":"https://api.github.com/users/Lighty46","html_url":"https://github.com/Lighty46","followers_url":"https://api.github.com/users/Lighty46/followers","following_url":"https://api.github.com/users/Lighty46/following{/other_user}","gists_url":"https://api.github.com/users/Lighty46/gists{/gist_id}","starred_url":"https://api.github.com/users/Lighty46/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lighty46/subscriptions","organizations_url":"https://api.github.com/users/Lighty46/orgs","repos_url":"https://api.github.com/users/Lighty46/repos","events_url":"https://api.github.com/users/Lighty46/events{/privacy}","received_events_url":"https://api.github.com/users/Lighty46/received_events","type":"User","site_admin":false},"created_at":"2015-12-24T13:00:29Z","updated_at":"2015-12-24T13:00:29Z","body":"Okay, a bit more testing and I have realised that if the first item in my XML only has 1 `eventDate` node then all of the other items can only ever have 1 `eventDate` block/row. So, to test I added two `eventDate` nodes to my first item and it then allowed the plugin to import multiple rows (all of them, not just 2)!\r\n\r\nBut I then realised that it now refused to import items that only have 1 `eventDate`... Is this a problem with the way my XML is structured or the way the plugin handles blocks/rows?"}}