Skip to content
This repository has been archived by the owner on Feb 2, 2023. It is now read-only.

Data imported incorrectly when multiple values refer to the same header #12

Closed
okun78 opened this issue Mar 11, 2015 · 3 comments
Closed

Comments

@okun78
Copy link

okun78 commented Mar 11, 2015

When in the script are present different values for the same header (in my case more than an option for a product) it duplicates the row and misses some data.

For example this part of a json

json

the result is the following

sheet

@rockinghelvetica
Copy link

From here: http://blog.fastfedora.com/projects/import-json#ImportJSON it appears that the fix is line 286, but I've not regressed it to say that's the correct fix across the board.

    if (data[state.rowIndex]) {
      state.rowIndex++;
    }

@okun78
Copy link
Author

okun78 commented Jul 7, 2015

Thanks a lot for your answer. I tried to apply the change you suggest, but the result, although it's better, is still not correct. Here it is:

schermata 2015-07-07 alle 09 41 19

@bradjasper
Copy link
Owner

I believe this is being addressed with #38

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants