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

CRM_Core_BAO_CustomGroup::getTree() returns the same tree, no matter what are the params

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: None
    • Labels:
      None

      Description

      We call CRM_Core_BAO_CustomGroup::getTree() from CRM/Contact/Form/Merge.php to obtain the custom data hierarchy and values → labels mappings for a contact. Unfortunately, on current trunk, this function returns the same tree, no matter what contact_id is in its call.

      To reproduce: Create two contacts with different values for a given custom data field. Call this function with these two contact_ids - the returned trees will carry the same values for both contacts.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                junia Junia Biswas
                Reporter:
                shot Piotr Szotkowski
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: