batchblue / batchbook-api

Official API documentation for Batchbook
http://batchbook.com
12 stars 2 forks source link

Company Affiliation -> Current Field changed to Primary-Detail #8

Closed jstrouse closed 11 years ago

jstrouse commented 11 years ago

The People -> Company-Affiliations -> Company-Affiliation -> Current field appears to have been replaced with 'primary-detail'. This broke the integration I had. I've fixed my integration, however, it appears the documentation on the people page hasn't been updated and still shows the field as current.

erickrause commented 11 years ago

Sorry about that. Current was removed from company affiliations model because while we were storing the data, we weren't actually doing anything with it. We weren't giving the user the ability to change it in the UI. Then while we were adding the mailing labels functionality, we needed the ability to set company's as primary. So for a contact, you can set an email as primary. Well now you can set the a company as primary. Which can then be used for the email/phone etc.
I should have been more on top of this, but was on vacation when this feature launched. I've got a pull request in to rename primary_detail to primary and bring it back into line with the rest of the associations (emails, phones, etc) If I get it approved, it should go out tonight, otherwise it will be out next Thursday evening.