Commit 0d86fa90 authored by webchick's avatar webchick

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

parent 53b72740
......@@ -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);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment