-
Notifications
You must be signed in to change notification settings - Fork 5
Description
Here is the scenario.
I installed a new Drupal site and set up the CAP module to import just the primary contact information. From that content type I was able to create a few views using the phone and email fields. I exported those views into a feature and was happy. Second time around I installed the site fresh with the CAP module and imported both the primary and alternative contact information fields. When I enabled the feature with the exported views the views fields were showing the wrong information. Instead of showing the primary email address and phone number it was showing the alternative email and phone number.
Digging into this issue it looks like the machine names for these fields can change depending on which fields are selected to be imported. In the example above the field names for the alternative and primary contact information are cap_email and cap_email_2. Email shows up in multiple places in all of the available fields. This could be a huge problem if the schema changes and adds an email field somewhere before or in the middle of any exported feature using the cap profile content type. This also creates an incompatibility across sites using the CAP module.
My expected behaviour would be that the primary contact email field would be named consistently independent of which fields are being selected for import.