Skip to content
Snippets Groups Projects
Commit 236206a7 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2554873 by samuel.mortenson: Log message in...

Issue #2554873 by samuel.mortenson: Log message in Drupal\rest\Plugin\rest\resource\EntityResource::patch() missing Entity ID
parent b077607f
No related branches found
No related tags found
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
......@@ -163,7 +163,7 @@ public function patch(EntityInterface $original_entity, EntityInterface $entity
$this->validate($original_entity);
try {
$original_entity->save();
$this->logger->notice('Updated entity %type with ID %id.', array('%type' => $entity->getEntityTypeId(), '%id' => $entity->id()));
$this->logger->notice('Updated entity %type with ID %id.', array('%type' => $original_entity->getEntityTypeId(), '%id' => $original_entity->id()));
// Update responses have an empty body.
return new ResourceResponse(NULL, 204);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment