Skip to content
This repository has been archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Merge branch 'hotfix/184'
Browse files Browse the repository at this point in the history
Close #184
  • Loading branch information
weierophinney committed Aug 29, 2016
2 parents d81369d + 1223140 commit 0842115
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ All notable changes to this project will be documented in this file, in reverse

### Fixed

- Nothing.
- [#184](https://github.com/zendframework/zend-mvc/pull/184) provides a
performance optimization for `DELETE` requests to `AbstractRestfulController`
instances.

## 3.0.2 - 2016-06-30

Expand Down
3 changes: 2 additions & 1 deletion src/Controller/AbstractRestfulController.php
Original file line number Diff line number Diff line change
Expand Up @@ -359,14 +359,15 @@ public function onDispatch(MvcEvent $e)
// DELETE
case 'delete':
$id = $this->getIdentifier($routeMatch, $request);
$data = $this->processBodyContent($request);

if ($id !== false) {
$action = 'delete';
$return = $this->delete($id);
break;
}

$data = $this->processBodyContent($request);

$action = 'deleteList';
$return = $this->deleteList($data);
break;
Expand Down

0 comments on commit 0842115

Please sign in to comment.