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:
Nathan Gray 2012-11-22 16:02:18 +00:00
parent 15df850d28
commit e36ccd9e10

View File

@ -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']),