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

Commit 85efa4c

Browse files
committed
Merge pull request #184 from davidwindell/patch-1
Move unnecessary processBodyContent()
2 parents d81369d + caf7a59 commit 85efa4c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Controller/AbstractRestfulController.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,13 +359,14 @@ public function onDispatch(MvcEvent $e)
359359
// DELETE
360360
case 'delete':
361361
$id = $this->getIdentifier($routeMatch, $request);
362-
$data = $this->processBodyContent($request);
363362

364363
if ($id !== false) {
365364
$action = 'delete';
366365
$return = $this->delete($id);
367366
break;
368367
}
368+
369+
$data = $this->processBodyContent($request);
369370

370371
$action = 'deleteList';
371372
$return = $this->deleteList($data);

0 commit comments

Comments
 (0)