mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Fix of delimiter not used bug
See issue https://github.com/silverstripe/silverstripe-framework/issues/8881
This commit is contained in:
parent
960a7bb5ae
commit
260c89fd54
@ -75,6 +75,7 @@ class CsvBulkLoader extends BulkLoader
|
|||||||
try {
|
try {
|
||||||
$filepath = Director::getAbsFile($filepath);
|
$filepath = Director::getAbsFile($filepath);
|
||||||
$csvReader = Reader::createFromPath($filepath, 'r');
|
$csvReader = Reader::createFromPath($filepath, 'r');
|
||||||
|
$csvReader->setDelimiter($this->delimiter);
|
||||||
|
|
||||||
$tabExtractor = function ($row, $rowOffset, $iterator) {
|
$tabExtractor = function ($row, $rowOffset, $iterator) {
|
||||||
foreach ($row as &$item) {
|
foreach ($row as &$item) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user