Skip to content

Trellis Opportunity Importer does not function on multilingual quickstart sites #5586

@tadean

Description

@tadean

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.

Metadata

Metadata

Assignees

Labels

blockerbugSomething isn't workinghigh priorityMust get done for this milestoneintegrationsThis relates to an integration into a central service.

Type

Projects

Status

In progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions