Skip to content

Commit

Permalink
Breaking change: Do not forward to update if __identity is given
Browse files Browse the repository at this point in the history
  • Loading branch information
cundd committed Mar 11, 2019
1 parent 6b570a4 commit ca2657a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Classes/Handler/CrudHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,6 @@ public function create(RestRequestInterface $request)
return $this->responseFactory->createErrorResponse('Invalid or missing payload', 400, $request);
}

if (isset($data['__identity'])) {
return $this->update($request, $data['__identity']);
}

$resourceType = $request->getResourceType();
$dataProvider = $this->getDataProvider($resourceType);
$model = $dataProvider->createModel($data, $resourceType);
Expand Down

0 comments on commit ca2657a

Please sign in to comment.