diff --git a/htdocs/contact/fiche.php b/htdocs/contact/fiche.php index f670c7b4a6d..36473ee011c 100644 --- a/htdocs/contact/fiche.php +++ b/htdocs/contact/fiche.php @@ -199,18 +199,26 @@ if ($_GET["socid"] > 0) if ($_GET["action"] == 'create') { - /* - * Fiche en mode creation - * - */ + /* + * Fiche en mode creation + * + */ + print '
'; - print "
"; + print ''; print ''; print ''; if ($_GET["socid"] > 0) { + + /* On remplit avec le numéro de la société par défaut */ + if (strlen(trim($contact->phone_pro)) == 0) + { + $contact->phone_pro = $objsoc->tel; + } + print ''; print ''; print '';
'.$langs->trans("Company").''.$objsoc->nom.'