mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 01:13:25 +01:00
Try field mapping for both parts of column count check
This commit is contained in:
parent
20908f688e
commit
d06f3a82ee
@ -294,7 +294,7 @@
|
|||||||
$data = translation::convert($data,$options['charset']);
|
$data = translation::convert($data,$options['charset']);
|
||||||
|
|
||||||
$ok = true;
|
$ok = true;
|
||||||
if(count($data) != count($options['field_mapping']) && max(array_keys($data)) != max(array_keys($options['csv_fields'])))
|
if(count($data) != count($options['field_mapping']) && max(array_keys($data)) != max(array_keys($options['field_mapping'])))
|
||||||
{
|
{
|
||||||
$message[] = lang("Column mismatch. Expected %1 columns, your file has %2.",
|
$message[] = lang("Column mismatch. Expected %1 columns, your file has %2.",
|
||||||
count($options['field_mapping']),
|
count($options['field_mapping']),
|
||||||
|
Loading…
Reference in New Issue
Block a user