Closed (fixed)
Project:
Ubercart Product Keys
Version:
6.x-1.0-alpha1
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
16 Dec 2009 at 23:00 UTC
Updated:
31 Dec 2009 at 17:40 UTC
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
Comment #1
freixas commentedI 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.