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

Existing Org ID is being filled in but not details

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 3.0.4, 3.1.2
    • Fix Version/s: 3.1.2
    • Component/s: CiviContribute
    • Labels:
      None

      Description

      This is a set up where a membership is onbehalf of an organisation.

      If you put the membership id in the url (e.g. 32 below ) it retrieves the employer's contact ID & puts it in the host name field. However, the field should be populated with a Host Name not an ID.

      http://sandbox.civicrm.org/civicrm/contribute/transact?reset=1&id=2&mid=32

      There is code in
      Contribute/main:: function buildOnBehalfOrganization( )
      to pre-fill the related contact address fields but this isn't working. The JQUERY in the tpl file does work to do this & is would perhaps be easiest to pre-fill it using JQUERY - but maybe not the most correct approach?

      if ( $this->_membershipContactID )

      { require_once 'CRM/Core/BAO/Location.php'; $entityBlock = array( 'contact_id' => $this->_membershipContactID ); CRM_Core_BAO_Location::getValues( $entityBlock, $this->_defaults ); }

        Attachments

          Activity

            People

            • Assignee:
              sushant Sushant Paste
              Reporter:
              eileen Eileen McNaughton
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 30 minutes
                30m
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m