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

Allow to get all relationships of contact with ajax call

    Details

    • Type: New Feature
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.5.6
    • Fix Version/s: 4.6
    • Component/s: None
    • Labels:
      None
    • Documentation Required?:
      Developer Doc

      Description

      When showing the relationships of a contact on the relation tab the data gets called via an ajax call
      var sourceUrl =

      {/literal}

      '

      {crmURL p="civicrm/ajax/contactrelationships" h=0 q="context=$context&cid=$contactId"}

      '

      {literal}

      ;
      The context parameter defines, if we add the current or previous relations.
      There is however no possibility to return all relations.

      The function used through te ajax call is
      public static function getContactRelationshipSelector(&$params)
      If we add a context=all possibility we can return this quite easily.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              mallezie Tim Mallezie
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: