From 7918318db45229d66ec82e8cb25fc541ed9617c7 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Mon, 26 Feb 2024 09:53:54 +1300 Subject: [PATCH] FIX Don't panic if classname isn't set (#1687) --- code/ModelAdmin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ModelAdmin.php b/code/ModelAdmin.php index 3d4eb7e3a..2ade1c574 100644 --- a/code/ModelAdmin.php +++ b/code/ModelAdmin.php @@ -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);