fix wrong constant usage

This commit is contained in:
Christophe Battarel 2014-01-21 18:33:25 +01:00
parent 7d04944ca7
commit 81bae5fff9

View File

@ -964,7 +964,7 @@ class Propal extends CommonObject
$this->date = $now;
$this->datep = $now; // deprecated
$this->fin_validite = $this->date + ($this->duree_validite * 24 * 3600);
if (empty(MAIN_KEEP_REF_CUSTOMER_ON_CLONING)) $this->ref_client = '';
if (empty($conf->global->MAIN_KEEP_REF_CUSTOMER_ON_CLONING)) $this->ref_client = '';
// Set ref
require_once DOL_DOCUMENT_ROOT ."/core/modules/propale/".$conf->global->PROPALE_ADDON.'.php';