diff --git a/importexport/inc/class.importexport_import_ui.inc.php b/importexport/inc/class.importexport_import_ui.inc.php index 31597b7694..1db226991a 100644 --- a/importexport/inc/class.importexport_import_ui.inc.php +++ b/importexport/inc/class.importexport_import_ui.inc.php @@ -285,6 +285,7 @@ public static function check_file(&$file, &$definition, &$message = array(), $dst_file = false) { $options =& $definition->plugin_options; + $message_count = count($message); // Only CSV files if(!$options['csv_fields']) return true; @@ -318,7 +319,7 @@ // $ok = false; } } - if(!$ok) + if(!$ok || count($message != $message_count)) { // Add links for new / edit definition $config = config::read('importexport');