Fix MVC
This commit is contained in:
parent
bb1af10cf1
commit
fe537fb2fc
@ -101,10 +101,6 @@ $now = dol_now();
|
|||||||
/*
|
/*
|
||||||
* Actions
|
* Actions
|
||||||
*/
|
*/
|
||||||
$contactstatic = new Contact($db);
|
|
||||||
$userstatic = new User($db);
|
|
||||||
$form = new Form($db);
|
|
||||||
$formcompany = new FormCompany($db);
|
|
||||||
|
|
||||||
if ($id > 0 && empty($object->id))
|
if ($id > 0 && empty($object->id))
|
||||||
{
|
{
|
||||||
@ -250,6 +246,11 @@ if (empty($reshook))
|
|||||||
* View
|
* View
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
$contactstatic = new Contact($db);
|
||||||
|
$userstatic = new User($db);
|
||||||
|
$form = new Form($db);
|
||||||
|
$formcompany = new FormCompany($db);
|
||||||
|
|
||||||
$title = $langs->trans("CustomerCard");
|
$title = $langs->trans("CustomerCard");
|
||||||
if (!empty($conf->global->MAIN_HTML_TITLE) && preg_match('/thirdpartynameonly/', $conf->global->MAIN_HTML_TITLE) && $object->name) $title = $object->name;
|
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';
|
$help_url = 'EN:Module_Third_Parties|FR:Module_Tiers|ES:Empresas';
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user