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, ] );