sdwsd
This commit is contained in:
parent
06fa443b3e
commit
2140181a76
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user