mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00: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;
|
public $hasHeaderRow = true;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @inheritDoc
|
||||||
|
*/
|
||||||
|
public function preview($filepath) {
|
||||||
|
return $this->processAll($filepath, true);
|
||||||
|
}
|
||||||
|
|
||||||
protected function processAll($filepath, $preview = false) {
|
protected function processAll($filepath, $preview = false) {
|
||||||
$results = new BulkLoader_Result();
|
$results = new BulkLoader_Result();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user