Issue #2554873 by samuel.mortenson: Log message in Drupal\rest\Plugin\rest\resource\EntityResource::patch() missing Entity ID

8.0.x
Alex Pott 2015-08-22 17:33:23 +01:00
parent b077607f91
commit 236206a769
1 changed files with 1 additions and 1 deletions

View File

@ -163,7 +163,7 @@ class EntityResource extends ResourceBase {
$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);