BUGFIX Only including ModelAdmin->ImportForm() if an actual importer was specified

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/branches/2.3@66784 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2008-11-26 23:30:14 +00:00 committed by Sam Minnee
parent 8bff580b44
commit 96f6ffb74c

View File

@ -354,7 +354,7 @@ class ModelAdmin_CollectionController extends Controller {
$importers = $this->parentController->getModelImporters(); $importers = $this->parentController->getModelImporters();
if(!$importers) return false; if(!$importers || !isset($importers[$modelName])) return false;
$fields = new FieldSet( $fields = new FieldSet(
new HiddenField('ClassName', _t('ModelAdmin.CLASSTYPE'), $modelName), new HiddenField('ClassName', _t('ModelAdmin.CLASSTYPE'), $modelName),