|
@@ -212,7 +212,11 @@ if (is_object($objcanvas) && $objcanvas->displayCanvasExists($action)) {
|
|
|
|
|
|
$linkback = '<a href="'.DOL_URL_ROOT.'/contact/list.php?restore_lastsearch_values=1">'.$langs->trans("BackToList").'</a>';
|
|
|
|
|
|
- $morehtmlref = '<div class="refidno">';
|
|
|
+ $morehtmlref = '<a href="'.DOL_URL_ROOT.'/contact/vcard.php?id='.$object->id.'" class="refid">';
|
|
|
+ $morehtmlref .= img_picto($langs->trans("Download").' '.$langs->trans("VCard"), 'vcard.png', 'class="valignmiddle marginleftonly paddingrightonly"');
|
|
|
+ $morehtmlref .= '</a>';
|
|
|
+
|
|
|
+ $morehtmlref .= '<div class="refidno">';
|
|
|
if (empty($conf->global->SOCIETE_DISABLE_CONTACTS)) {
|
|
|
$objsoc = new Societe($db);
|
|
|
$objsoc->fetch($object->socid);
|