Closed sumachaa closed 8 years ago
The issue seems to be that the class ERViewModeBehavior
is not getting loaded & hence the function ctools_plugin_get_class
returns NULL.
Loading the class file explicitly resolves this issue.
As per step 3 here https://www.drupal.org/node/1962284 it is good to load the class files from info.
Closing the issue as the code is merged
When using features module in creating the field instance which is configured with er_viewmode, the view mode column is not getting created.
This works fine when the field is updated from the Drupal admin UI
Attached a simple feature which can be used for testing basic_page.zip
Steps to replicate the issue
Now we can see that the field_instance got created, and it is tagged as using er_viewmode behavior, but when you get the Database schema for this field, you can notice that the view_mode column is not created. Because of this when you create a new page for the content type it throws error that column does not exist.
It works fine when we save the field settings once.