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

(Duplicate need to be closed)Import multi value data with multiple "Contact ID"

    Details

    • Type: Bug
    • Status: Won't Do
    • Priority: Trivial
    • Resolution: Won't Do
    • Affects Version/s: 4.6.10
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      1. Create simple custom files with "Alphanumeric" type of field (Custom Filed->Student->Select "Alphanumeric" type)
      2. Navigate to the Import Multi value page and upload 'csv' with ID and valid text field value (ex: 128, test)
      3. Move to second page of the wizard and select for all fields "Contact ID" type
      4. Press Next and Import

      Actual Result:

      Strict warning: Declaration of CRM_Custom_Import_Parser::run() should be compatible with CRM_Contact_Import_Parser::run($tableName, &$mapper, $mode = self::MODE_PREVIEW, $contactType = self::CONTACT_INDIVIDUAL, $primaryKeyName = '_id', $statusFieldName = '_status', $onDuplicate = self::DUPLICATE_SKIP, $statusID = NULL, $totalRowCount = NULL, $doGeocodeAddress = false, $timeout = CRM_Contact_Import_Parser::DEFAULT_TIMEOUT, $contactSubType = NULL, $dedupeRuleGroupID = NULL) in require_once() (line 35 of /var/www/sites/all/modules/custom/civicrm/CRM/Custom/Import/Parser.php).
      Notice: Undefined index: custom in CRM_Custom_Import_Parser_Api->import() (line 171 of /var/www/sites/all/modules/custom/civicrm/CRM/Custom/Import/Parser/Api.php).
      Warning: Invalid argument supplied for foreach() in CRM_Custom_Import_Parser_Api->import() (line 171 of /var/www/sites/all/modules/custom/civicrm/CRM/Custom/Import/Parser/Api.php).
      Notice: Undefined index: custom in CRM_Custom_Import_Parser_Api->import() (line 171 of /var/www/sites/all/modules/custom/civicrm/CRM/Custom/Import/Parser/Api.php).
      Warning: Invalid argument supplied for foreach() in CRM_Custom_Import_Parser_Api->import() (line 171 of /var/www/sites/all/modules/custom/civicrm/CRM/Custom/Import/Parser/Api.php).
      

      Expected Result:

      • Contact ID have to be Integer only (as far as I understand)
      • User should be allowed to move forward with invalid Contact ID or properly handled error message have to be displayed with explanation

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              rbyelyy Roman Byelyy
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: