diff --git a/htdocs/comm/action/fiche.php b/htdocs/comm/action/fiche.php index f3f0ab292b6..d53481fb803 100644 --- a/htdocs/comm/action/fiche.php +++ b/htdocs/comm/action/fiche.php @@ -233,12 +233,12 @@ if ($_GET["action"] == 'create') print ''; // Societe, contact - print ''.$langs->trans("ActionOnCompany").''; + print ''.$langs->trans("ActionOnCompany").''; if ($_GET["socid"]) { $societe = new Societe($db); - $nomsoc=$societe->get_nom($_GET["socid"]); - print ''.$nomsoc.''; + $societe->fetch($_GET["socid"]); + print $societe->nom_url; print ''; } else @@ -278,11 +278,34 @@ if ($_GET["action"] == 'create') * */ else - { + { + /* + * Click to dial + * + */ + if (defined("MAIN_MODULE_CLICKTODIAL") && MAIN_MODULE_CLICKTODIAL==1) + { + $user->fetch_clicktodial(); + + if ($_GET["call"] && $user->clicktodial_enabled == 1) + { + + print '\n"; + } + } + /* + * + * + */ print_titre ($langs->trans("AddAction")); print "
"; - print ''; + print '
'; // Type d'action actifs print '
'.$langs->trans("Action").''; @@ -303,10 +326,10 @@ if ($_GET["action"] == 'create') print '
'.$langs->trans("ActionOnCompany").''; if ($_GET["socid"]) { - $societe = new Societe($db); - $nomsoc=$societe->get_nom($_GET["socid"]); - print ''.$nomsoc.''; - print ''; + $societe = new Societe($db); + $societe->fetch($_GET["socid"]); + print $societe->nom_url; + print ''; } else {