Commit 236206a7 authored by alexpott's avatar alexpott

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
......@@ -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);
......
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