From 73d61f7440d30588177873aa7f2848bac5624221 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 19 Aug 2023 23:52:22 +0200 Subject: [PATCH] Fixed PartKeepr import for storagelocation attachments This should fix issue #334 --- .../PartKeeprImporter/PKDatastructureImporter.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Services/ImportExportSystem/PartKeeprImporter/PKDatastructureImporter.php b/src/Services/ImportExportSystem/PartKeeprImporter/PKDatastructureImporter.php index d53566c0..4f9acbca 100644 --- a/src/Services/ImportExportSystem/PartKeeprImporter/PKDatastructureImporter.php +++ b/src/Services/ImportExportSystem/PartKeeprImporter/PKDatastructureImporter.php @@ -265,8 +265,7 @@ class PKDatastructureImporter { $count = $this->importElementsWithCategory($data, Storelocation::class, 'storagelocation'); - //Footprints have both attachments and images - $this->importAttachments($data, 'storagelocationimage', Storelocation::class, 'footprint_id', StorelocationAttachment::class); + $this->importAttachments($data, 'storagelocationimage', Storelocation::class, 'storageLocation_id', StorelocationAttachment::class); return $count; }