From: <no...@so...> - 2002-10-18 00:08:17
|
Bugs item #624630, was opened at 2002-10-17 07:52 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108956&aid=624630&group_id=8956 Category: SQL Group: cvs Status: Open Resolution: None Priority: 5 Submitted By: Martin Laarz (mlaarz) Assigned to: Nobody/Anonymous (nobody) Summary: Bug within survey_export_csv.inc (1.8) Initial Comment: Hi, in the Release 1.5RC2 from the CVS (16.10.2002) i found bug within the export function. The File survey_export_csv.inc (1.8) has been fixed for the new-line problem and something else. Exporting the Data of unfilled Fileds to CSV will duplicate the last valid entry with in a line until the next field entry will be exported. The CSV looks like: NACHNAME,VORNAME,STANDORT,BUS,UHRZEIT,UN TERKUNFT,ZIMMMERGEN "Nachname","Vorname","Berlin","Berlin","Berlin",, "Nachname2","Vorname2","Karlsruhe","Ja","Ja",, "Nachname3","Vorname3","Kassel","Kassel","2.00 Uhr","Doppelzimmer", "Nachname4","Vorname4","Saarbrücken","Saarbrücken", "Saarbrücken",,"Niemanden" But it should look like: NACHNAME,VORNAME,STANDORT,BUS,UHRZEIT,UN TERKUNFT,ZIMMMERGEN "Nachname","Vorname","Berlin",,,, "Nachname2","Vorname2","Karlsruhe","Ja",,, "Nachname3","Vorname3","Kassel",,"2.00 Uhr","Doppelzimmer", "Nachname4","Vorname4","Saarbrücken",,,,"Niemanden" It looks like that a var won't be deleted within a loop and copies the value until the loop will find the next entry within da dataset of a response id. Regards Martin ---------------------------------------------------------------------- >Comment By: James Flemer (jimmerman) Date: 2002-10-17 19:08 Message: Logged In: YES user_id=39444 I cannot seem to reproduce this problem. Try to reproduce it on the demo site[1]. Post the survey ID of the survey you created so I can see what field types you are using. Also grab this[2] script, put it on your web server (as a .php), and post it's output. [1] http://phpesp.sf.net/demo/ [2] http://phpesp.sf.net/files/status.php.txt ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=108956&aid=624630&group_id=8956 |