core/modules/rest/src/Plugin/rest/resource/EntityResource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php index b675cb6..e9910fd 100644 --- a/core/modules/rest/src/Plugin/rest/resource/EntityResource.php +++ b/core/modules/rest/src/Plugin/rest/resource/EntityResource.php @@ -246,7 +246,7 @@ public function patch(EntityInterface $original_entity, EntityInterface $entity } // Unchanged values for entity keys don't need access checking. - if (!$original_entity->get($field_name)->equals($field)) { + if ($original_entity->get($field_name)->equals($field)) { continue; } // It is not possible to set the language to NULL as it is automatically