From 2c34b577fb3f3afec9103da3a1ecb5c0344f0a82 Mon Sep 17 00:00:00 2001 From: Michael Hoennig Date: Wed, 17 Jul 2024 11:22:03 +0200 Subject: [PATCH] set parentAsset (ManagedServer) for ManagedWebspaces BookingItems --- .../hsadminng/hs/office/migration/ImportHostingAssets.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportHostingAssets.java b/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportHostingAssets.java index 715e5db2..e359850d 100644 --- a/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportHostingAssets.java +++ b/src/test/java/net/hostsharing/hsadminng/hs/office/migration/ImportHostingAssets.java @@ -338,7 +338,9 @@ public class ImportHostingAssets extends CsvDataImport { final var haType = determineHaType(basepacket_code); if (haType == MANAGED_WEBSPACE) { final var managedWebspace = pac(packet_id); - managedWebspace.setParentAsset(hive(hive_id).serverRef.get()); + final var parentAsset = hive(hive_id).serverRef.get(); + managedWebspace.setParentAsset(parentAsset); + managedWebspace.getBookingItem().setParentItem(parentAsset.getBookingItem()); } }); }