From 55e27eee9912ad9a7298b0a6380592092e04537f Mon Sep 17 00:00:00 2001 From: TickTackk Date: Mon, 20 Apr 2020 06:02:03 +0530 Subject: [PATCH] Do not throw exception if no content type is available --- Job/Upgrade/RebuildAttachmentOwner.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Job/Upgrade/RebuildAttachmentOwner.php b/Job/Upgrade/RebuildAttachmentOwner.php index 871ab8f..fcf64b1 100644 --- a/Job/Upgrade/RebuildAttachmentOwner.php +++ b/Job/Upgrade/RebuildAttachmentOwner.php @@ -39,7 +39,7 @@ protected function getNextIds($start, $batch) : array } $app = $this->app(); - $entityName = $app->getContentTypeEntity($contentType); + $entityName = $app->getContentTypeEntity($contentType, false); if (!$entityName) { return [];