CruGlobal/mpdx — pull request #162 by draffensperger (2014-10-17 00:14:14+00:00)
Title: Make an imported Google address primary if no MPDX primary address

Stacie caught a bug in the Google import where after importing a Google contact with its addresses, no address would be set to primary and hence none displayed for the contact in the main MPDX contact view. Google does have an address primary field, but usually all are set to false in my experience.

This change will make it so that one imported address is set to primary if MPDX didn't have any primary addresses and none of the Google addresses were marked as primary. In my spec I checked for the same behavior for website, phone and email but those are already working either due to logic in the import or models.