Problem/Motivation
PHP errors occur when visiting Trellis opportunity importer on a site that has multiple languages.
Describe the bug
The subclasses of BulkForm we use for events and opportunity imports do not function correctly on multilingual sites. BulkForm implements EntityTranslationRenderTrait, which checks the entity type to figure out how to render translations. Since these remote data fields have no entity type, this fails.
To Reproduce
- enable
az_multilingual
- add a second language at
/admin/config/regional/language
- This step is important. Enabling multilingual support is not enough, there must be a second language.
- enable
az_opportunity_trellis
- visit
/admin/trellis-opportunity-importer
The website encountered an unexpected error. Try again later.
- View watchdog log
- Look for error:
Exception: No entity type for field Id on view az_opportunity_trellis_import in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 839 of /app/web/core/modules/views/src/Plugin/views/HandlerBase.php).
Proposed resolution
Inform the bulkform implementation that the data for these rows aren't translatable entities.
Problem/Motivation
PHP errors occur when visiting Trellis opportunity importer on a site that has multiple languages.
Describe the bug
The subclasses of
BulkFormwe use for events and opportunity imports do not function correctly on multilingual sites. BulkForm implementsEntityTranslationRenderTrait, which checks the entity type to figure out how to render translations. Since these remote data fields have no entity type, this fails.To Reproduce
az_multilingual/admin/config/regional/languageaz_opportunity_trellis/admin/trellis-opportunity-importerThe website encountered an unexpected error. Try again later.Exception: No entity type for field Id on view az_opportunity_trellis_import in Drupal\views\Plugin\views\HandlerBase->getEntityType() (line 839 of /app/web/core/modules/views/src/Plugin/views/HandlerBase.php).Proposed resolution
Inform the bulkform implementation that the data for these rows aren't translatable entities.