Skip to content
Snippets Groups Projects
Commit 11dd32a8 authored by Maxime Kohlhaas's avatar Maxime Kohlhaas
Browse files

FIXED Import module was not working with multi-company and importing everything in entity 1

parent 568d5cb5
No related branches found
No related tags found
No related merge requests found
......@@ -607,7 +607,7 @@ class ImportCsv extends ModeleImports
//var_dump($objimport->array_import_convertvalue); exit;
// Build SQL request
if (empty($tablewithentity[$tablename]))
if (empty($tablewithentity_cache[$tablename]))
{
$sql ='INSERT INTO '.$tablename.'('.$listfields.', import_key';
if (! empty($objimport->array_import_tables_creator[0][$alias])) $sql.=', '.$objimport->array_import_tables_creator[0][$alias];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment