Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21172

Fix 'Edit Contact Information' link on contact dashboard

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.24
    • Fix Version/s: 4.7.25
    • Component/s: None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      No

      Description

      On clicking Edit Contact Information link on contact dashboard, we get this error

       

      Exception: "Cannot determine default context. CRM_Contact_Form_RelatedContact should implement getDefaultContext()."
      
      #0 /home/yashodha/git/civicrm/CRM/Core/Form.php(1375): CRM_Core_Form->getDefaultContext() #1 /home/yashodha/git/civicrm/CRM/Contact/Form/Edit/Address.php(70): CRM_Core_Form->addField("address[1][location_type_id]", (Array:5), FALSE) #2 /home/yashodha/git/civicrm/CRM/Contact/BAO/Contact/Utils.php(538): CRM_Contact_Form_Edit_Address::buildQuickForm(Object(CRM_Contact_Form_RelatedContact)) #3 /home/yashodha/git/civicrm/CRM/Contact/Form/RelatedContact.php(126): CRM_Contact_BAO_Contact_Utils::buildOnBehalfForm(Object(CRM_Contact_Form_RelatedContact), "Individual", "", "", "Contact Information") #4 /home/yashodha/git/civicrm/CRM/Core/Form.php(564): CRM_Contact_Form_RelatedContact->buildQuickForm() #5 /home/yashodha/git/civicrm/CRM/Core/QuickForm/Action/Display.php(92): CRM_Core_Form->buildForm() #6 /home/yashodha/git/civicrm/packages/HTML/QuickForm/Controller.php(203): CRM_Core_QuickForm_Action_Display->perform(Object(CRM_Contact_Form_RelatedContact), "display") #7 /home/yashodha/git/civicrm/packages/HTML/QuickForm/Page.php(103): HTML_QuickForm_Controller->handle(Object(CRM_Contact_Form_RelatedContact), "display") #8 /home/yashodha/git/civicrm/CRM/Core/Controller.php(351): HTML_QuickForm_Page->handle("display") #9 /home/yashodha/git/civicrm/CRM/Utils/Wrapper.php(113): CRM_Core_Controller->run() #10 /home/yashodha/git/civicrm/CRM/Core/Invoke.php(283): CRM_Utils_Wrapper->run("CRM_Contact_Form_RelatedContact", "Edit Related Contact", NULL) #11 /home/yashodha/git/civicrm/CRM/Core/Invoke.php(84): CRM_Core_Invoke::runItem((Array:14)) #12 /home/yashodha/git/civicrm/CRM/Core/Invoke.php(52): CRM_Core_Invoke::_invoke((Array:3)) #13 /home/yashodha/git/civicrm/drupal/civicrm.module(448): CRM_Core_Invoke::invoke((Array:3)) #14 [internal function](): civicrm_invoke("contact", "relatedcontact?action=update") #15 /var/www/html/drupal/includes/menu.inc(527): call_user_func_array("civicrm_invoke", (Array:2)) #16 /var/www/html/drupal/index.php(21): menu_execute_active_handler() #17 {main}  Sorry, due to an error, we are unable to fulfill your request at the moment. You may want to contact your administrator or service provider with more details about what action you were performing when this occurred. Cannot determine default context. CRM_Contact_Form_RelatedContact should implement getDefaultContext().  

       
       

        Attachments

          Activity

            People

            • Assignee:
              monish.deb Monish Deb
              Reporter:
              yashodha Yashodha Chaku
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: