This commit is contained in:
Simon Pocrnjič 2025-12-17 21:50:48 +01:00
parent 06fa443b3e
commit 2140181a76

View File

@ -183,10 +183,7 @@ public function process(Import $import, ?Authenticatable $user = null): array
}
// Preflight: warn if any mapped source columns are not present in the header (exact match)
$headerSet = [];
foreach ($header as $h) {
$headerSet[$h] = true;
}
$missingSources = [];
// Regex validation removed per request; rely on basic length/placeholder checks only
foreach ($mappings as $map) {
$src = (string) ($map->source_column ?? '');
if ($src !== '' && ! array_key_exists($src, $headerSet)) {