Verified Commit b1740bd4 authored by Côme Chilliet's avatar Côme Chilliet
Browse files

:ambulance: fix(csv import) Removed a blocking check when changing import data

issue #5902
Showing with 3 additions and 0 deletions
+3 -0
...@@ -128,6 +128,9 @@ class csvimport extends simplePlugin ...@@ -128,6 +128,9 @@ class csvimport extends simplePlugin
{ {
$this->csv_data = $this->parse_csv($this->import_file); $this->csv_data = $this->parse_csv($this->import_file);
/* Remove fields from previous import, if any */
$this->attributesAccess['fields']->setAttributes(array());
$messages = $this->check(); $messages = $this->check();
if (!empty($messages)) { if (!empty($messages)) {
msg_dialog::displayChecks($messages); msg_dialog::displayChecks($messages);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment