From ffc72e17e0d8b66e6c9d6a4cbd54143ae2784f98 Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Tue, 22 Oct 2013 10:40:42 +0530 Subject: [PATCH] CRM-13631 ---------------------------------------- * CRM-13631: vCard not including organization name http://issues.civicrm.org/jira/browse/CRM-13631 --- CRM/Contact/Page/View/Vcard.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CRM/Contact/Page/View/Vcard.php b/CRM/Contact/Page/View/Vcard.php index 5e1ce28dba..2d4759a4a9 100644 --- a/CRM/Contact/Page/View/Vcard.php +++ b/CRM/Contact/Page/View/Vcard.php @@ -70,6 +70,10 @@ class CRM_Contact_Page_View_Vcard extends CRM_Contact_Page_View { CRM_Utils_Array::value('prefix', $defaults), CRM_Utils_Array::value('suffix', $defaults) ); + $organizationName = CRM_Utils_Array::value('organization_name', $defaults); + if ($organizationName !== NULL) { + $vcard->addOrganization($organizationName); + } } elseif ($defaults['contact_type'] == 'Organization') { $vcard->setName($defaults['organization_name'], '', '', '', ''); -- 2.25.1