diff --git a/htdocs/comm/addpropal.php b/htdocs/comm/addpropal.php index 872dddf1530..6fbe4b48ccd 100644 --- a/htdocs/comm/addpropal.php +++ b/htdocs/comm/addpropal.php @@ -64,7 +64,6 @@ if ($_GET["action"] == 'create') } $propal = new Propal($db); - $propal->date=time(); $numpr=''; $obj = $conf->global->PROPALE_ADDON; diff --git a/htdocs/includes/modules/propale/mod_propale_marbre.php b/htdocs/includes/modules/propale/mod_propale_marbre.php index 61ed3f6d9fc..59100a91034 100644 --- a/htdocs/includes/modules/propale/mod_propale_marbre.php +++ b/htdocs/includes/modules/propale/mod_propale_marbre.php @@ -118,7 +118,7 @@ class mod_propale_marbre extends ModeleNumRefPropales return -1; } - $date = (!empty($propal->datep)?$propal->datep:dol_now('tzserver')); + $date = time(); $yymm = strftime("%y%m",$date); $num = sprintf("%04s",$max+1);