Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Trivial
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.3.6
-
Fix Version/s: 4.4.0
-
Component/s: None
-
Labels:None
Description
Notice: Undefined index: street_address in CRM_Import_Parser_Contact->createContact() (line 1677 of /Users/josephmurray/GoogleDrive/Sites/campaigntool/html/sites/all/modules/civicrm/CRM/Import/Parser/Contact.php).
The if here, which is designed to protect the assignment from invalid values:
if ($address['street_address'] && (!CRM_Utils_Array::value('street_number', $address) || !CRM_Utils_Array::value('street_name', $address))) {
$this->_unparsedStreetAddressContacts[] = array(
'id' => $newContact->id,
'streetAddress' => $address['street_address'],
);
should probably be rewritten to include an appropriate function around $address['street_address'].