From bfd2680638f48af0421ad27a3c1bb0da7bd38355 Mon Sep 17 00:00:00 2001 From: Duncan McClean Date: Thu, 21 Nov 2024 10:39:26 +0000 Subject: [PATCH] Fix error when saving XML import (#39) * Fix error when saving XML import * Fix styling * Revert "Fix styling" This reverts commit 9994e477fb6b7fdcef56617523a690484a188627. --------- Co-authored-by: duncanmcclean --- src/Http/Controllers/ImportController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/ImportController.php b/src/Http/Controllers/ImportController.php index 869ee8e..b41b745 100644 --- a/src/Http/Controllers/ImportController.php +++ b/src/Http/Controllers/ImportController.php @@ -172,7 +172,7 @@ public function update(Request $request, Import $import) 'path' => $path, 'destination' => collect($values['destination'])->filter()->all(), 'strategy' => $values['strategy'], - 'source' => $values['source'], + 'source' => $values['source'] ?? null, 'mappings' => $values['mappings'], 'unique_field' => $values['unique_field'], ]));