CRM-15626 fix - Relationship Create Widget Not always showing the correct available...
authormonishdeb <monish.deb@webaccessglobal.com>
Tue, 9 Dec 2014 13:49:18 +0000 (19:19 +0530)
committermonishdeb <monish.deb@webaccessglobal.com>
Tue, 9 Dec 2014 13:49:18 +0000 (19:19 +0530)
https://issues.civicrm.org/jira/browse/CRM-15626

CRM/Contact/Form/Relationship.php

index 45ff98c3f9538180cbe0d42975965b1f938c1b34..9639a69365034ae71c9d111e5a063d1c2a742cd7 100644 (file)
@@ -322,7 +322,7 @@ class CRM_Contact_Form_Relationship extends CRM_Core_Form {
     $this->assign('includeWysiwygEditor', TRUE);
 
     // Select list
-    $relationshipList = CRM_Contact_BAO_Relationship::getContactRelationshipType($this->_contactId, $this->_rtype, $this->_relationshipId);
+    $relationshipList = CRM_Contact_BAO_Relationship::getContactRelationshipType($this->_contactId, $this->_rtype, $this->_relationshipId, NULL, FALSE, 'label', TRUE, NULL, TRUE);
 
     // Metadata needed on clientside
     $contactTypes = CRM_Contact_BAO_ContactType::contactTypeInfo(TRUE);