Menu

#130 cvs full headers export problems

v1.7
closed-fixed
Admin (87)
5
2005-08-08
2005-07-20
No

When exporting data using csv full headers I seem to
always get a whole heap of extra info in the csv file.
as an example I have attached a csv file. It is from a
survey that only has 2 responses.

/function/survey_export_csv.inc

the comparison (around line 235):
if ($key == key($columns[$i])){

should read:
if ($key === key($columns[$i])){

Discussion

  • Kon Angelopoulos

     
  • Matthew Gregg

    Matthew Gregg - 2005-07-21

    Logged In: YES
    user_id=14116

    I've gone ahead and submitted this to CVS but I can't
    duplicated it. Can you duplicate with a very simple survey
    and send me the question types?

     
  • Kon Angelopoulos

    Logged In: YES
    user_id=198398

    the survey contained 3 questions.
    The question types used were:
    yes/no, rate scale and radio button.

    Now that I've had a closer look at the csv file that I attached
    to my previous post the problem seems to stem from the rate
    scale question.

    The extra output relate to the ratings given to this question by
    the 2 respondents.

    Hope this helps.

     
  • Kon Angelopoulos

    Logged In: YES
    user_id=198398

    the survey contained 3 questions.
    The question types used were:
    yes/no, rate scale and radio button.

    Now that I've had a closer look at the csv file that I attached
    to my previous post the problem seems to stem from the rate
    scale question.

    The extra output relate to the ratings given to this question by
    the 2 respondents.

    Hope this helps.

     
  • Kon Angelopoulos

    Logged In: YES
    user_id=198398

    the survey contained 3 questions.
    The question types used were:
    yes/no, rate scale and radio button.

    Now that I've had a closer look at the csv file that I attached
    to my previous post the problem seems to stem from the rate
    scale question.

    The extra output relate to the ratings given to this question by
    the 2 respondents.

    Hope this helps.

     
  • Matthew Gregg

    Matthew Gregg - 2005-07-22

    Logged In: YES
    user_id=14116

    I still can't duplicate, but have no doubt this could be a
    bug. Did the change you posted fix it for your case?

     
  • Kon Angelopoulos

    Logged In: YES
    user_id=198398

    yes it did.

     
  • Matthew Gregg

    Matthew Gregg - 2005-08-08
    • labels: --> Admin
    • milestone: --> v1.7
    • assigned_to: nobody --> angek
    • status: open --> closed-fixed
     

Log in to post a comment.