mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
$resultsCount now gets int value from loader directly instead of DataObjectSet
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@61123 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
0771001c0b
commit
a968c25cec
@ -261,8 +261,8 @@ abstract class ModelAdmin extends LeftAndMain {
|
||||
$importerClass = $importers[$data['ClassName']];
|
||||
|
||||
$loader = new $importerClass($data['ClassName']);
|
||||
$results = $loader->load($_FILES['_CsvFile']['tmp_name']);
|
||||
$resultsCount = ($results) ? $results->Count() : 0;
|
||||
$resultsCount = $loader->load($_FILES['_CsvFile']['tmp_name']);
|
||||
//$resultsCount = ($results) ? $results->Count() : 0;
|
||||
|
||||
Session::setFormMessage('Form_ImportForm', "Loaded {$resultsCount} items", 'good');
|
||||
Director::redirect($_SERVER['HTTP_REFERER'] . '#Form_ImportForm_holder');
|
||||
|
Loading…
Reference in New Issue
Block a user