mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Update action should resolve the identifier
This commit is contained in:
parent
01f59b4e82
commit
f523f31b5b
1 changed files with 1 additions and 1 deletions
|
|
@ -138,7 +138,7 @@ class ResourceController extends Controller implements ResourceControllerInterfa
|
|||
*/
|
||||
public function updateAction(Request $request)
|
||||
{
|
||||
$resource = $this->findResourceOr404($request->get('id'));
|
||||
$resource = $this->findResourceOr404(array($this->getIdentifierName() => $this->getIdentifierValue()));
|
||||
$form = $this->createResourceForm($resource);
|
||||
|
||||
if ($request->isMethod('POST') && $form->bind($request)->isValid()) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue