diff --git a/src/controllers/DocumentsController.php b/src/controllers/DocumentsController.php index aaa41d5..537042f 100644 --- a/src/controllers/DocumentsController.php +++ b/src/controllers/DocumentsController.php @@ -229,6 +229,12 @@ protected function handleDelete(ElementEvent $event) $collection = CollectionHelper::getCollectionBySection($section); } + // get the generic type if specific doesn't exist + if (is_null($collection)) { + $section = $entry->section->handle . '.all'; + $collection = CollectionHelper::getCollectionBySection($section); + } + if ($collection) { $resolver = $collection->schema['resolver']($entry); }