From 7d2231b5e4c8b6e54c2b293714dc8a65d03c5d2c Mon Sep 17 00:00:00 2001 From: Michele Locati Date: Wed, 27 Aug 2025 15:50:45 +0200 Subject: [PATCH] Fix viewing export batch when an attribute key is deleted --- .../Concrete5/MigrationTool/Exporter/Item/Type/AttributeKey.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PortlandLabs/Concrete5/MigrationTool/Exporter/Item/Type/AttributeKey.php b/src/PortlandLabs/Concrete5/MigrationTool/Exporter/Item/Type/AttributeKey.php index 61b0eff3..884f9bd8 100644 --- a/src/PortlandLabs/Concrete5/MigrationTool/Exporter/Item/Type/AttributeKey.php +++ b/src/PortlandLabs/Concrete5/MigrationTool/Exporter/Item/Type/AttributeKey.php @@ -31,7 +31,7 @@ public function getResultColumns(ExportItem $exportItem) { $ak = Key::getInstanceByID($exportItem->getItemIdentifier()); - return array($ak->getAttributeKeyDisplayName()); + return array($ak ? $ak->getAttributeKeyDisplayName() : h('<' . t('Deleted Attribute Key') . '>')); } public function getItemsFromRequest($array)