diff --git a/htdocs/core/class/vcard.class.php b/htdocs/core/class/vcard.class.php
index 7625954690b..a5e1cbf6814 100644
--- a/htdocs/core/class/vcard.class.php
+++ b/htdocs/core/class/vcard.class.php
@@ -488,7 +488,7 @@ class vCard
$this->setPhoneNumber($company->fax, "TYPE=WORK,FAX");
}
if ($company->address || $company->town || $company->state || $company->zip || $company->country) {
- $this->setAddress("", "", $company->address, $company->town, $company->state, $company->zip, $company->country, "");
+ $this->setAddress("", "", $company->address, $company->town, $company->state, $company->zip, $company->country, "TYPE=WORK");
}
if ($company->email && $company->email != $object->email) {
diff --git a/htdocs/langs/en_US/companies.lang b/htdocs/langs/en_US/companies.lang
index 7200ffb3d70..d31ecb077ff 100644
--- a/htdocs/langs/en_US/companies.lang
+++ b/htdocs/langs/en_US/companies.lang
@@ -499,4 +499,5 @@ OutOfEurope=Out of Europe (EEC)
CurrentOutstandingBillLate=Current outstanding bill late
BecarefullChangeThirdpartyBeforeAddProductToInvoice=Be carefull, depending on your product price settings, you should change thirdparty before adding product to POS.
EmailAlreadyExistsPleaseRewriteYourCompanyName=email already exists please rewrite your company name
-TwoRecordsOfCompanyName=more than one record exists for this company please contact us to complete your partnership request"
\ No newline at end of file
+TwoRecordsOfCompanyName=more than one record exists for this company please contact us to complete your partnership request"
+CompanySection=Company section
\ No newline at end of file
diff --git a/htdocs/user/virtualcard.php b/htdocs/user/virtualcard.php
index 4685c6e9b16..04f8fb42030 100644
--- a/htdocs/user/virtualcard.php
+++ b/htdocs/user/virtualcard.php
@@ -210,21 +210,21 @@ if (getDolUserInt('USER_ENABLE_PUBLIC', 0, $object)) {
// Office phone
print '
| ';
- print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("OfficePhone"));
+ print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("PhonePro"));
print ' | ';
print $form->selectyesno("USER_PUBLIC_HIDE_OFFICE_PHONE", (getDolUserInt('USER_PUBLIC_HIDE_OFFICE_PHONE', 0, $object) ? getDolUserInt('USER_PUBLIC_HIDE_OFFICE_PHONE', 0, $object) : 0), 1);
print " |
\n";
// Office fax
print '| ';
- print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("OfficeFax"));
+ print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("Fax"));
print ' | ';
print $form->selectyesno("USER_PUBLIC_HIDE_OFFICE_FAX", (getDolUserInt('USER_PUBLIC_HIDE_OFFICE_FAX', 0, $object) ? getDolUserInt('USER_PUBLIC_HIDE_OFFICE_FAX', 0, $object) : 0), 1);
print " |
\n";
// User mobile
print '| ';
- print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("UserMobile"));
+ print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("PhoneMobile"));
print ' | ';
print $form->selectyesno("USER_PUBLIC_HIDE_USER_MOBILE", (getDolUserInt('USER_PUBLIC_HIDE_USER_MOBILE', 0, $object) ? getDolUserInt('USER_PUBLIC_HIDE_USER_MOBILE', 0, $object) : 0), 1);
print " |
\n";
@@ -238,7 +238,7 @@ if (getDolUserInt('USER_ENABLE_PUBLIC', 0, $object)) {
// Social networks
print '| ';
- print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("SocialNetworks"));
+ print $langs->trans("HideOnVCard", $langs->transnoentitiesnoconv("SocialNetworksInformation"));
print ' | ';
print $form->selectyesno("USER_PUBLIC_HIDE_SOCIALNETWORKS", (getDolUserInt('USER_PUBLIC_HIDE_SOCIALNETWORKS', 0, $object) ? getDolUserInt('USER_PUBLIC_HIDE_SOCIALNETWORKS', 0, $object) : 0), 1);
print " |
\n";
@@ -262,7 +262,8 @@ if (getDolUserInt('USER_ENABLE_PUBLIC', 0, $object)) {
print $langs->trans("Text");
print '';
require_once DOL_DOCUMENT_ROOT.'/core/class/doleditor.class.php';
- $doleditor = new DolEditor('USER_PUBLIC_MORE', getDolUserString('USER_PUBLIC_MORE', '', $object), '', 160, 'dolibarr_notes', '', false, false, isModEnabled('fckeditor'), ROWS_5, '90%');
+ $extendededitor = 0; // We force no WYSIWYG editor
+ $doleditor = new DolEditor('USER_PUBLIC_MORE', getDolUserString('USER_PUBLIC_MORE', '', $object), '', 160, 'dolibarr_notes', '', false, false, $extendededitor, ROWS_5, '90%');
$doleditor->Create();
print " | \n";