Removed double quoute from the from fields as it means field terminator

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60937 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Saophalkun Ponlu 2008-08-18 04:23:24 +00:00
parent 900baba303
commit 505fef0791

View File

@ -904,8 +904,10 @@ JS
foreach($fieldItems as $fieldItem) {
$fields = $fieldItem->Fields();
foreach($fields as $field) {
// replace <br/ > with newline for csv
// replace <br/ >s with newlines for csv
$field->Value = str_replace('<br />', "\n", $field->Value);
// remove double quotes
$field->Value = str_replace('"', "", $field->Value);
$fileData .= "\"" . $field->Value . "\"";
if($field->Last()) {
$fileData .= "\n";