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

Commit

Permalink
- Correction de la modification de la ref dans le cas ou la boutique …
Browse files Browse the repository at this point in the history
…envoie une ref vide sur un produit deja synchronisé vers Dolibarr.
  • Loading branch information
kamel committed Aug 2, 2019
1 parent e6b8009 commit e9dab03
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ChangeLog

## 4.0.34.0

- Correction de la modification de la ref dans le cas ou la boutique envoie une ref vide sur un produit deja synchronisé vers Dolibarr.

## 4.0.33.0

- Correction de la recherche des contacts d'une commande lors de sa synchronisation depuis Woocommerce.
Expand Down
2 changes: 1 addition & 1 deletion class/business/eCommerceSynchro.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -1685,7 +1685,7 @@ public function synchProduct($toNb=0)
}

//libelle of product object = label into database
$dBProduct->ref = isset($productArray['ref']) ? dol_string_nospecial(trim($productArray['ref'])) : $dBProduct->ref;
$dBProduct->ref = !empty($productArray['ref']) ? dol_string_nospecial(trim($productArray['ref'])) : $dBProduct->ref;
$dBProduct->label = $productArray['label'];
$dBProduct->description = isset($productArray['description']) ? $productArray['description'] : $dBProduct->description;
$dBProduct->weight = isset($productArray['weight']) ? $productArray['weight'] : $dBProduct->weight;
Expand Down
2 changes: 1 addition & 1 deletion core/modules/modECommerceNg.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function __construct($db)
$this->editor_url = 'http://www.open-dsi.fr';

// Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = '4.0.33';
$this->version = '4.0.34';
// Key used in llx_const table to save module status enabled/disabled (where MYMODULE is value of property name of module in uppercase)
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
// Where to store the module in setup page (0=common,1=interface,2=others,3=very specific)
Expand Down

0 comments on commit e9dab03

Please sign in to comment.