From bd14e79854970d33949feaa0a0f0f62ddc6dc666 Mon Sep 17 00:00:00 2001 From: KirinZero0 Date: Mon, 24 Feb 2025 16:56:32 +0800 Subject: [PATCH] Fix Import Locations --- app/Actions/Inventory/Location/ImportLocation.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Actions/Inventory/Location/ImportLocation.php b/app/Actions/Inventory/Location/ImportLocation.php index 32915d781d..ac89b1dddb 100644 --- a/app/Actions/Inventory/Location/ImportLocation.php +++ b/app/Actions/Inventory/Location/ImportLocation.php @@ -30,6 +30,8 @@ public function handle(Warehouse|WarehouseArea|Organisation $parent, $file): Upl $file, [ 'model' => 'Location', + 'parent_type' => $parent->getMorphClass(), + 'parent_id' => $parent->id, ] );