mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
BUG Fix CSV export with periods in the name
This commit is contained in:
parent
4a37a17cdc
commit
d1ad43e23f
@ -162,7 +162,11 @@ LEFT JOIN "SubmittedForm" ON "SubmittedForm"."ID" = "SubmittedFormField"."Parent
|
|||||||
WHERE "SubmittedForm"."ParentID" = '$parentID'
|
WHERE "SubmittedForm"."ParentID" = '$parentID'
|
||||||
ORDER BY "Title" ASC
|
ORDER BY "Title" ASC
|
||||||
SQL;
|
SQL;
|
||||||
$columns = DB::query($columnSQL)->map();
|
// Sanitise periods in title
|
||||||
|
$columns = array();
|
||||||
|
foreach(DB::query($columnSQL)->map() as $name => $title) {
|
||||||
|
$columns[$name] = trim(strtr($title, '.', ' '));
|
||||||
|
}
|
||||||
|
|
||||||
$config = new GridFieldConfig();
|
$config = new GridFieldConfig();
|
||||||
$config->addComponent(new GridFieldToolbarHeader());
|
$config->addComponent(new GridFieldToolbarHeader());
|
||||||
|
Loading…
Reference in New Issue
Block a user