Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
Correction de l'ajout du lien de la catégorie racine des produits
Browse files Browse the repository at this point in the history
  • Loading branch information
kamel committed Nov 4, 2019
1 parent 50e9127 commit b9eddc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions class/business/eCommerceSynchro.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -891,6 +891,7 @@ public function synchCategory($toNb=0)
$this->eCommerceMotherCategory->fk_category = $dBCategorie->id;
$this->eCommerceMotherCategory->fk_site = $this->eCommerceSite->id;
$this->eCommerceMotherCategory->remote_id = $categoryArray['parent_id'];
$this->eCommerceMotherCategory->last_update = '';

// Create an entry to map importRootCategory in eCommerceCategory
$result = $this->eCommerceMotherCategory->create($this->user);
Expand Down
2 changes: 1 addition & 1 deletion class/data/eCommerceCategory.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function create($user, $notrigger = 0)
$sql.= " " . $this->db->escape($this->fk_site) . ",";
$sql.= " " . (isset($this->remote_id) ? intval($this->remote_id) : 0) . ",";
$sql.= " " . (isset($this->remote_parent_id) ? intval($this->remote_parent_id) : 0) . ",";
$sql.= " '" . $this->db->idate($this->last_update) . "'";
$sql.= " " . ($this->last_update > 0 ? "'" . $this->db->idate($this->last_update) . "'" : "NULL");
$sql.= ")";

$this->db->begin();
Expand Down

0 comments on commit b9eddc9

Please sign in to comment.