From 3bf7ec7e9d55ae592fa7a25e673cf81aa4466d83 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Tue, 23 Jul 2024 20:35:28 +0300 Subject: [PATCH] fix mid keys only for custom --- .../Espo/Core/Upgrades/Migrations/V8_4/AfterUpgrade.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/application/Espo/Core/Upgrades/Migrations/V8_4/AfterUpgrade.php b/application/Espo/Core/Upgrades/Migrations/V8_4/AfterUpgrade.php index 8bb0e64ca6..28ed0b86df 100644 --- a/application/Espo/Core/Upgrades/Migrations/V8_4/AfterUpgrade.php +++ b/application/Espo/Core/Upgrades/Migrations/V8_4/AfterUpgrade.php @@ -59,7 +59,7 @@ class AfterUpgrade implements Script $type = $linkDefs['type'] ?? null; $foreignEntityType = $linkDefs['entity'] ?? null; $midKeys = $linkDefs['midKeys'] ?? null; - //$isCustom = $relationDefs['isCustom'] ?? false; + $isCustom = $relationDefs['isCustom'] ?? false; if ($type !== RelationType::HAS_MANY) { continue; @@ -73,9 +73,9 @@ class AfterUpgrade implements Script continue; } - /*if ($isCustom) { + if (!$isCustom) { continue; - }*/ + } if ($linkDefs['_keysSwappedAfterUpgrade'] ?? false) { continue;