mirror of
https://github.com/Sylius/Sylius.git
synced 2026-07-14 09:02:12 +00:00
Form bind method should take request as argument
This commit is contained in:
parent
1dd10d0ac6
commit
4293e37e26
1 changed files with 1 additions and 1 deletions
|
|
@ -85,7 +85,7 @@ abstract class ResourceController extends Controller implements ResourceControll
|
|||
$resource = $this->createResource();
|
||||
$form = $this->createResourceForm($resource);
|
||||
|
||||
if ($request->isMethod('POST') && $form->bind()->isValid()) {
|
||||
if ($request->isMethod('POST') && $form->bind($request)->isValid()) {
|
||||
$this->getManipulator()->create($resource);
|
||||
$this->setFlash('success', sprintf("%s has been created", ucfirst($this->getResourceName())));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue