2
0
forked from Wavyzz/dolibarr
This commit is contained in:
Laurent Destailleur
2021-01-19 12:14:54 +01:00
committed by GitHub
parent bb1af10cf1
commit fe537fb2fc

View File

@@ -101,10 +101,6 @@ $now = dol_now();
/*
* Actions
*/
$contactstatic = new Contact($db);
$userstatic = new User($db);
$form = new Form($db);
$formcompany = new FormCompany($db);
if ($id > 0 && empty($object->id))
{
@@ -250,6 +246,11 @@ if (empty($reshook))
* View
*/
$contactstatic = new Contact($db);
$userstatic = new User($db);
$form = new Form($db);
$formcompany = new FormCompany($db);
$title = $langs->trans("CustomerCard");
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) $title = $object->name;
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';