Option to solve autovalidation

This commit is contained in:
Laurent Destailleur 2018-06-27 01:31:53 +02:00
parent 668608db5e
commit a0e97c7640

View File

@ -407,7 +407,10 @@ class Contrat extends CommonObject
$this->fetch_thirdparty();
// A contract is validated so we can move thirdparty to status customer
$result=$this->thirdparty->set_as_client();
if (empty($conf->global->CONTRACT_DISABLE_AUTOSET_AS_CLIENT_ON_CONTRACT_VALIDATION))
{
$result=$this->thirdparty->set_as_client();
}
// Define new ref
if ($force_number)