ytgov / yukon-ca

New version of Yukon.ca, built on Drupal 10
1 stars 1 forks source link

Core patch to fix error on config import #482

Open leeomara opened 2 weeks ago

leeomara commented 2 weeks ago

Applies patch from 2321071:BaseFieldOverride fails to take into account ContentEntityInterface::bundleFieldDefinitions() when invoking onFieldDefinitionUpdate()

The error is:

[error] TypeError: Drupal\Core\Entity\ContentEntityStorageBase::onFieldDefinitionUpdate(): Argument #2 ($original) must be of type Drupal\Core\Field\FieldDefinitionInterface, null given, called in /var/www/docroot/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php on line 210 in Drupal\Core\Entity\ContentEntityStorageBase->onFieldDefinitionUpdate() (line 546 of /var/www/docroot/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php) #0 /var/www/docroot/core/lib/Drupal/Core/Field/Entity/BaseFieldOverride.php(210): Drupal\Core\Entity\ContentEntityStorageBase->onFieldDefinitionUpdate(Object(Drupal\Core\Field\Entity\BaseFieldOverride), NULL)

With this patch, config import still fails once, but subsequent runs do complete.

leeomara commented 2 weeks ago

Whoops, forgot to update the composer lock file.