Skip to content

Commit

Permalink
Merge pull request #2287 from atm-maxime/3.6
Browse files Browse the repository at this point in the history
FIXED Import module was not working with multi-company and importing eve...
  • Loading branch information
eldy committed Jan 31, 2015
2 parents 568d5cb + 11dd32a commit 2581592
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion htdocs/core/modules/import/import_csv.modules.php
Expand Up @@ -607,7 +607,7 @@ function import_insert($arrayrecord,$array_match_file_to_database,$objimport,$ma
//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];
Expand Down

0 comments on commit 2581592

Please sign in to comment.