civicrm/civicrm-core — pull request #3041 by lolas-freeform (2014-04-30 02:03:30+00:00)
Title: CRM-14470 - Prevent users from adding two 'is_primary' fields of the same field type

Prevent users from adding two fields of the same field type (eg. phone) with location type 'is_primary'.