mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
Number of columns in file must match number of columns in sample file given to definition instead of number of columns imported (to get non-imported columns working again)
This commit is contained in:
parent
15df850d28
commit
e36ccd9e10
@ -325,7 +325,7 @@
|
||||
$data = translation::convert($data,$options['charset']);
|
||||
|
||||
$ok = true;
|
||||
if(count($data) != count($options['field_mapping']) && max(array_keys($data)) != max(array_keys($options['field_mapping'])))
|
||||
if(count($data) != count($options['csv_fields']) && max(array_keys($data)) != max(array_keys($options['csv_fields'])))
|
||||
{
|
||||
$message[] = lang("Column mismatch. Expected %1 columns, your file has %2.",
|
||||
count($options['field_mapping']),
|
||||
|
Loading…
Reference in New Issue
Block a user