CRM-21172 - Fix 'Edit Contact Information' link on contact dashboard
authoryashodha <yashodha@cividesk.com>
Mon, 11 Sep 2017 09:32:11 +0000 (15:02 +0530)
committeryashodha <yashodha@cividesk.com>
Mon, 11 Sep 2017 09:32:11 +0000 (15:02 +0530)
CRM/Contact/Form/RelatedContact.php

index f2e1774868d5e9778b3b04cd15a4589a2dec52db..2f3eede683789c0f45864adc99e5e8080cc32792 100644 (file)
@@ -54,6 +54,13 @@ class CRM_Contact_Form_RelatedContact extends CRM_Core_Form {
    */
   public $_contactId;
 
+  /**
+   * Explicitly declare the form context.
+   */
+  public function getDefaultContext() {
+    return 'create';
+  }
+
   /**
    * Build all the data structures needed to build the form.
    */