Answers.Body: <p>When I look at it on the public demo it almost seems like the link itself is a mistake, since it doesn't look like a link to manage case, it's a link to some other function. If you go to the case dashboard or the civicrm dashboard (as opposed to My Contact Dashboard), the links there are correct.</p>
  
  <p>Edit: some more info:</p>
  
  <p>What seems to be happening is that normally CRM_Contact_BAO_Relationship::getContactRelationshipSelector (which is the thing that builds that table) will call CRM_Contact_Page_View_Relationship::links, which has the correct link for manage case. However for My Contact Dashboard it calls CRM_Contact_Page_View_UserDashBoard::links, which doesn't set anything for the CRM_Core_Action::NONE entry in the links array, and so something gets confused somewhere.</p>
  
  <p>Untested but I think adding this code:</p>
  
  <pre><code>CRM_Core_Action::NONE =&gt; array(
        'name' =&gt; ts('Manage Case'),
        'url' =&gt; 'civicrm/contact/view/case',
        'qs' =&gt; 'action=view&amp;reset=1&amp;cid=%%clientid%%&amp;id=%%caseid%%',
        'title' =&gt; ts('Manage Case'),
      ),
  </code></pre>
  
  <p>into the CRM_Contact_Page_View_UserDashBoard::links function might fix it.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-09-20T15:20:30.587Z
Answers.LastActivityDate: 2016-09-21T00:21:50.860Z
Answers.LastEditDate: 2016-09-21T00:21:50.860Z
Answers.UserDisplayName: Demerit
Body: <p>When clicking Manage Case # on my contact dashboard, I am met with an error</p>
  
  <blockquote>
    <p>Cannot determine default context. CRM_Contact_Form_RelatedContact
    should implement getDefaultContext</p>
  </blockquote>
  
  <p>Is there a setting I am missing, or is this a bug?</p>
  
  <p><a href="https://i.sstatic.net/KOnPN.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/KOnPN.png" alt="enter image description here"></a></p>
  
Tags: <civicase><dashboard>
Title: Cannot determine default context. CRM_Contact_Form_RelatedContact should implement getDefaultContext
ThreadText: # Cannot determine default context. CRM_Contact_Form_RelatedContact should implement getDefaultContext
  
  (Asked by: username_0 on 2016-09-19)
  
  When clicking Manage Case # on my contact dashboard, I am met with an error
  
  > Cannot determine default context. CRM\_Contact\_Form\_RelatedContact
  > should implement getDefaultContext
  
  Is there a setting I am missing, or is this a bug?
  
  [![enter image description here](https://i.sstatic.net/KOnPN.png)](https://i.sstatic.net/KOnPN.png)
  
  **Tags:** civicase, dashboard
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-09-20. Score: 0 | Accepted answer
  
  When I look at it on the public demo it almost seems like the link itself is a mistake, since it doesn't look like a link to manage case, it's a link to some other function. If you go to the case dashboard or the civicrm dashboard (as opposed to My Contact Dashboard), the links there are correct.
  
  Edit: some more info:
  
  What seems to be happening is that normally CRM\_Contact\_BAO\_Relationship::getContactRelationshipSelector (which is the thing that builds that table) will call CRM\_Contact\_Page\_View\_Relationship::links, which has the correct link for manage case. However for My Contact Dashboard it calls CRM\_Contact\_Page\_View\_UserDashBoard::links, which doesn't set anything for the CRM\_Core\_Action::NONE entry in the links array, and so something gets confused somewhere.
  
  Untested but I think adding this code:
  
  ```
  CRM_Core_Action::NONE => array(
        'name' => ts('Manage Case'),
        'url' => 'civicrm/contact/view/case',
        'qs' => 'action=view&reset=1&cid=%%clientid%%&id=%%caseid%%',
        'title' => ts('Manage Case'),
      ),
  
  ```
  
  into the CRM\_Contact\_Page\_View\_UserDashBoard::links function might fix it.
  
  
  ---
  
  