mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIX Adding preview method to CsvBulkLoader
Currently the CsvBulkLoader doesn't implement the preview method even though it's processor function has the $preview flag.
This commit is contained in:
parent
00bcdf39d3
commit
3020576f08
@ -32,6 +32,13 @@ class CsvBulkLoader extends BulkLoader {
|
||||
*/
|
||||
public $hasHeaderRow = true;
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
public function preview($filepath) {
|
||||
return $this->processAll($filepath, true);
|
||||
}
|
||||
|
||||
protected function processAll($filepath, $preview = false) {
|
||||
$results = new BulkLoader_Result();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user