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)
|
// Preflight: warn if any mapped source columns are not present in the header (exact match)
|
||||||
$headerSet = [];
|
$headerSet = [];
|
||||||
foreach ($header as $h) {
|
// Regex validation removed per request; rely on basic length/placeholder checks only
|
||||||
$headerSet[$h] = true;
|
|
||||||
}
|
|
||||||
$missingSources = [];
|
|
||||||
foreach ($mappings as $map) {
|
foreach ($mappings as $map) {
|
||||||
$src = (string) ($map->source_column ?? '');
|
$src = (string) ($map->source_column ?? '');
|
||||||
if ($src !== '' && ! array_key_exists($src, $headerSet)) {
|
if ($src !== '' && ! array_key_exists($src, $headerSet)) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user