From 96f6ffb74cfcd3aca19dc8bf7f1d045e6af577c7 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Wed, 26 Nov 2008 23:30:14 +0000 Subject: [PATCH] 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 --- code/ModelAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index 0892e049..1462ca4e 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -354,7 +354,7 @@ class ModelAdmin_CollectionController extends Controller { $importers = $this->parentController->getModelImporters(); - if(!$importers) return false; + if(!$importers || !isset($importers[$modelName])) return false; $fields = new FieldSet( new HiddenField('ClassName', _t('ModelAdmin.CLASSTYPE'), $modelName),