mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
900baba303
commit
505fef0791
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user