I am trying to import but only one item is importing. If I change the separator I am getting a mess of all of the items as one long key.

Comments

freixas’s picture

Assigned: Unassigned » freixas
Status: Active » Fixed

I ran a number of test cases on the import code (which has been short-changed since I didn't need it for my project). The test cases are included in a folder called test, so this folder includes examples of how to set up the files (the regression test cases include error input, so they aren't good models).

I found a bunch of problems, small things like a reversed conditional test in an "if" statement and reversed arguments for strpos(). It seems to work now.

Strangely enough, before I fixed the code, I was able to import using the tab-separated format. I don't know how it worked, but somehow the errors canceled each other out for tab-separated formats. The multi-line format had problems and, when I fixed them, revealed that the tab-separated format also had problems.

The fix is available in the dev build dated 12-17-2009 or later.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.