Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Major
-
Resolution: Fixed/Completed
-
Affects Version/s: 1.1
-
Fix Version/s: None
-
Component/s: Technical infrastructure
-
Labels:None
Description
If the contact is not created with a phone field, it cannot be updated.
crm_update_contact() tries to update a non-existant phone record, leading to a PHP error.
I think is issue is in utils::_crm_update_contact() - there should be checks that $contact->location[$contactLocationBlock]->X is an object when calling _crm_update_object()
I'd guess similar problems will happen if the contact has no associated im, email or postal_code/address object - not confirmed though