Show new / edit definition options on any warning

This commit is contained in:
Nathan Gray 2012-10-12 15:05:29 +00:00
parent 03fe6356cb
commit 870d49f881

View File

@ -285,6 +285,7 @@
public static function check_file(&$file, &$definition, &$message = array(), $dst_file = false) public static function check_file(&$file, &$definition, &$message = array(), $dst_file = false)
{ {
$options =& $definition->plugin_options; $options =& $definition->plugin_options;
$message_count = count($message);
// Only CSV files // Only CSV files
if(!$options['csv_fields']) return true; if(!$options['csv_fields']) return true;
@ -318,7 +319,7 @@
// $ok = false; // $ok = false;
} }
} }
if(!$ok) if(!$ok || count($message != $message_count))
{ {
// Add links for new / edit definition // Add links for new / edit definition
$config = config::read('importexport'); $config = config::read('importexport');