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

Import - MapField (step 2) breaks if Relationship Type is defined with 'all contacts' as one of the contact types

    Details

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

      Description

      The error below occurs on step 2 of contact import wizard if a relationship type record exists with

      • contact type A = "the type being imported" AND
      • contact type B = "all contacts"

      The failure is in CRM/Import/Form/Mapfield.php around line 317 - because $cType is passed to the importableFields() function as a blank - when the function is expecting the string 'All' for this case. Note that in the error below, the contact type portion of the DAO file name is missing (DAO/.php).

      warning: CRM_Contact_BAO_Contact::importableFields(CRM/Contact/DAO/.php)
      [function.importableFields]: failed to open stream: No such file or
      directory in /var/www/modules/civicrm/CRM/Contact/BAO/Contact.php on
      line 1125.

        Attachments

          Activity

            People

            • Assignee:
              deepak Deepak Srivastava
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: