This commit is contained in:
Laurent Destailleur 2020-08-02 01:11:23 +02:00
parent 328a25abea
commit 817912ea40

View File

@ -565,7 +565,7 @@ class Product extends CommonObject
return -1;
}
if (empty($this->ref)) {
if (empty($this->ref) || $this->ref == 'auto') {
// Load object modCodeProduct
$module = (!empty($conf->global->PRODUCT_CODEPRODUCT_ADDON) ? $conf->global->PRODUCT_CODEPRODUCT_ADDON : 'mod_codeproduct_leopard');
if ($module != 'mod_codeproduct_leopard') // Do not load module file for leopard