From 505fef0791d5d56fc5a113e7efa11ffc3d02ae25 Mon Sep 17 00:00:00 2001 From: Saophalkun Ponlu Date: Mon, 18 Aug 2008 04:23:24 +0000 Subject: [PATCH] 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 --- forms/TableListField.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/forms/TableListField.php b/forms/TableListField.php index 214cff88e..fe01dc163 100755 --- a/forms/TableListField.php +++ b/forms/TableListField.php @@ -904,8 +904,10 @@ JS foreach($fieldItems as $fieldItem) { $fields = $fieldItem->Fields(); foreach($fields as $field) { - // replace
with newline for csv + // replace
s with newlines for csv $field->Value = str_replace('
', "\n", $field->Value); + // remove double quotes + $field->Value = str_replace('"', "", $field->Value); $fileData .= "\"" . $field->Value . "\""; if($field->Last()) { $fileData .= "\n";