CRM-14817 Relationship field mapping option disappear after select more field

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.4.6
    • Fix Version/s: 4.5
    • Component/s: Core CiviCRM
    • Labels:

      Description

      Reproduce this bug:

      1. Export participant using saved field mapping
      2. Select additional field like "Parent of Phone" at the bottom
      3. Press "Select more field" button.
      4. The option of last added row of relationship field will disappear.

      (see screenshot)

        Attachments

        1. Screenshot_11.png
          17 kB
          Jimmy Huang
        2. Screenshot_12.png
          15 kB
          Jimmy Huang
        3. Screen Shot 2014-06-13 at 2.58.25 PM.PNG
          107 kB
          David Greenberg
        4. screenshot-on-drupal-sandbox-civicrm.png
          86 kB
          Jimmy Huang

          Activity

          [CRM-14817] Relationship field mapping option disappear after select more field
          Jimmy Huang added a comment -
          David Greenberg added a comment -

          Jimmy - I am not able to replicate the reported problem on the latest 4.5 alpha / github checkout. I also went through the steps with your patch applied and it didn't change the behavior.

          However, in both cases I'm seeing a notice which might be related:
          Notice: Undefined index: location_type in CRM_Contact_BAO_Query->addHierarchicalElements() (line 995 of /Users/dgg/git/crm_v4.5/CRM/Contact/BAO/Query.php).

          Can you see i you can recreate this w/ current 4.5 codebase please. I don't want to merge the PR unless we can demonstrate that it corrects a problem.

          Jimmy Huang added a comment -

          Hello,

          I just reproduce this bug on http://drupal.sandbox.civicrm.org/, and on my machine (master branch)

          To replicate the issue, you must have this step:

          1. Use Exists saved mapping. (I created a "TEST" on drupal.sandbox site)
          2. Add additional mapping field(like you did)
          3. Press "Select more fields" button

          Our client report this issue, and I can't reproduce for a long time(maybe 1 year).
          But after various of try, finally I found this bug.

            People

            • Assignee:
              David Greenberg
              Reporter:
              Jimmy Huang

              Dates

              • Created:
                Updated:
                Resolved: