Skip to content

Commit

Permalink
FIX Don't panic if classname isn't set (#1687)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Feb 25, 2024
1 parent c8afecf commit 7918318
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/ModelAdmin.php
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ public function getModelImporters()
$importers = [];
foreach ($importerClasses as $modelClass => $importerClass) {
$tab = $modelClass;
if (isset($models[$modelClass])) {
if (isset($models[$modelClass]['dataClass'])) {
$modelClass = $models[$modelClass]['dataClass'];
}
$importer = new $importerClass($modelClass);
Expand Down

0 comments on commit 7918318

Please sign in to comment.