mirror of
https://github.com/silverstripe/silverstripe-cms
synced 2024-10-22 08:05:56 +02:00
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:
parent
8bff580b44
commit
96f6ffb74c
@ -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),
|
||||||
|
Loading…
Reference in New Issue
Block a user