Skip to content
Snippets Groups Projects

use getOriginal() no bc (test only, do not commit)

Closed Patrick Kenny requested to merge issue/field_encrypt-3524315:getOriginal_noBc into 4.x
Files
2
@@ -117,7 +117,7 @@ class FieldEncryptEntityType extends ConfigEntityBase {
*/
public function postSave(EntityStorageInterface $storage, $update = TRUE): void {
parent::postSave($storage, $update);
if (!$update || $this->getBaseFields() !== $this->original->getBaseFields()) {
if (!$update || $this->getBaseFields() !== $this->getOriginal()->getBaseFields()) {
self::queueEntityUpdates($this->id());
}
// Update the field_encrypt module's state.
Loading