mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2026-02-07 16:41:48 +01:00
Fix MVC
This commit is contained in:
committed by
GitHub
parent
bb1af10cf1
commit
fe537fb2fc
@@ -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';
|
||||
|
||||
Reference in New Issue
Block a user