fix: #3638219 Keep the English Canvas block versions on non-English installs

Fixes https://www.drupal.org/i/3638219

Installing Educare in a language other than English can stop with an InvalidConfigException on a Canvas block component version. Canvas hashes a block component's version with its translated label, so a component made before the recipe runs has only the translated version, while the recipe pins the English one.

The recipe now keeps the English version of each pinned block component with a translatable label beside the one Canvas made (simpleConfigUpdate on versioned_properties). English installs keep the same active versions. Same fix as The Rightup #3636517 (MR !100). Dropping component_version is not an option: Canvas requires it in config component trees.

Blocks covered: breadcrumb, webform, and the events and news latest and related view blocks.

Tested on DDEV with Drupal CMS 2.2.9: Português (Portugal) and English drush installs finish, home and content pages return 200.

AI-Generated: Yes

🤖 Generated with Claude Code

Checkpoints:

  • File an issue
  • Addition/Change/Update/Fix
  • Testing to ensure no regression
  • Automated unit testing coverage
  • Automated functional testing coverage
  • UX/UI designer responsibilities
  • Readability
  • Accessibility
  • Performance
  • Security
  • Developer Documentation
  • User Guide Documentation
  • Reviewed by human
  • Code review by maintainers
  • Full testing and approval
  • Credit contributors
  • Review with the product owner
  • Release notes snippet
  • Release
Edited by Rajab Natshah

Merge request reports

Loading
Loading