Update propal.class.php

This commit is contained in:
Laurent Destailleur
2022-09-07 16:27:31 +02:00
committed by GitHub
parent 5a4d5d7f97
commit 9835469a02

View File

@@ -384,7 +384,7 @@ class Propal extends CommonObject
$this->socid = $socid;
$this->id = $propalid;
$this->duree_validite = isset($conf->global->PROPALE_VALIDITY_DURATION)?((int) $conf->global->PROPALE_VALIDITY_DURATION):0;
$this->duree_validite = getDolGlobalInt('PROPALE_VALIDITY_DURATION', 0);
}