Fixed PartKeepr import for storagelocation attachments

This should fix issue #334
This commit is contained in:
Jan Böhmer 2023-08-19 23:52:22 +02:00
parent a43ee52086
commit 73d61f7440

View file

@ -265,8 +265,7 @@ class PKDatastructureImporter
{ {
$count = $this->importElementsWithCategory($data, Storelocation::class, 'storagelocation'); $count = $this->importElementsWithCategory($data, Storelocation::class, 'storagelocation');
//Footprints have both attachments and images $this->importAttachments($data, 'storagelocationimage', Storelocation::class, 'storageLocation_id', StorelocationAttachment::class);
$this->importAttachments($data, 'storagelocationimage', Storelocation::class, 'footprint_id', StorelocationAttachment::class);
return $count; return $count;
} }