Fix default contract numbering module must be serpis of nothing defined

This commit is contained in:
Laurent Destailleur 2016-11-14 01:24:36 +01:00
parent a129446a16
commit c34081cf53

View File

@ -935,7 +935,7 @@ class Contrat extends CommonObject
// Load object modContract
$module=(! empty($conf->global->CONTRACT_ADDON)?$conf->global->CONTRACT_ADDON:'mod_contract_olive');
$module=(! empty($conf->global->CONTRACT_ADDON)?$conf->global->CONTRACT_ADDON:'mod_contract_serpis');
if (substr($module, 0, 13) == 'mod_contract_' && substr($module, -3) == 'php')
{
$module = substr($module, 0, dol_strlen($module)-4);