Merge pull request #12583 from atm-maxime/fix_supplier_proddesc
Fix #12044 : with replenish function, use product supplier desc in order
This commit is contained in:
commit
87e81f1afd
@ -147,7 +147,13 @@ if ($action == 'order' && isset($_POST['valid']))
|
||||
{
|
||||
$productsupplier->getMultiLangs();
|
||||
}
|
||||
$line->desc = $productsupplier->description;
|
||||
|
||||
// if we use supplier description of the products
|
||||
if(!empty($productsupplier->desc_supplier) && !empty($conf->global->PRODUIT_FOURN_TEXTS)) {
|
||||
$desc = $productsupplier->desc_supplier;
|
||||
} else $desc = $productsupplier->description;
|
||||
|
||||
$line->desc = $desc;
|
||||
if (! empty($conf->global->MAIN_MULTILANGS))
|
||||
{
|
||||
// TODO Get desc in language of thirdparty
|
||||
|
||||
Loading…
Reference in New Issue
Block a user