Do not clear warnings and errors just because plugin can't add more

This commit is contained in:
Nathan Gray 2015-04-10 23:50:10 +00:00
parent 6046480847
commit 1ad8f3a90f

View File

@ -526,8 +526,6 @@
$buffer += "$record\t$msg\n"; $buffer += "$record\t$msg\n";
} }
error_log($buffer); error_log($buffer);
} else {
unset($data['warnings'][$target]);
} }
if(method_exists($po, 'get_errors') && $po->get_errors()) { if(method_exists($po, 'get_errors') && $po->get_errors()) {
$buffer = 'importexport_schedule: ' . date('c') . ": Import errors:\n#\tError\n"; $buffer = 'importexport_schedule: ' . date('c') . ": Import errors:\n#\tError\n";
@ -536,8 +534,6 @@
$buffer += "$record\t$error\n"; $buffer += "$record\t$error\n";
} }
error_log($buffer); error_log($buffer);
} else {
unset($data['errors'][$target]);
} }
if($po instanceof importexport_iface_import_plugin) { if($po instanceof importexport_iface_import_plugin) {