Skip to content
Snippets Groups Projects
Commit 0d86fa90 authored by Angie Byron's avatar Angie Byron
Browse files

Issue #2320253 by yched: Fixed FIC/FSC::preSave() do not call the parent implementation.

parent 53b72740
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -160,10 +160,8 @@ public function preSave(EntityStorageInterface $storage) {
// Notify the entity storage.
$entity_manager->getStorage($this->entity_type)->onFieldDefinitionUpdate($this, $this->original);
}
if (!$this->isSyncing()) {
// Ensure the correct dependencies are present.
$this->calculateDependencies();
}
parent::preSave($storage);
}
/**
......
......@@ -242,10 +242,8 @@ public function preSave(EntityStorageInterface $storage) {
else {
$this->preSaveUpdated($storage);
}
if (!$this->isSyncing()) {
// Ensure the correct dependencies are present.
$this->calculateDependencies();
}
parent::preSave($storage);
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment