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

Importing empty gender field causes PHP error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.0.2
    • Fix Version/s: 3.4.0
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      When importing contacts with an empty gender field, the following error is shown:

      warning: substr_compare() [function.substr-compare]: The length must be greater than zero in /usr/home/debxxxxx/domains/covs.org/public_html/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php on line 1026.

        Attachments

          Activity

            People

            • Assignee:
              priya Priya Prajapati
              Reporter:
              edvanleeuwen Ed van Leeuwen
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: