Skip to content

Commit

Permalink
Merge pull request #3044 from spryker/feature/core-2275-full-compatib…
Browse files Browse the repository at this point in the history
…ility-to-symfony-28-and-then-30-2

CORE-2275 full compatibility to symfony 28 and then 30
  • Loading branch information
dereuromark authored Feb 6, 2018
2 parents 63b93c6 + 13d691b commit 63dd95e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function indexAction(Request $request)
)
->handleRequest($request);

if ($form->isValid()) {
if ($form->isSubmitted() && $form->isValid()) {
$customerTransfer = new CustomerTransfer();
$customerTransfer->fromArray($form->getData(), true);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function editAction(Request $request)
)
->handleRequest($request);

if ($addressForm->isValid()) {
if ($addressForm->isSubmitted() && $addressForm->isValid()) {
$customerAddress = new AddressTransfer();
$customerAddress->fromArray($addressForm->getData(), true);

Expand Down Expand Up @@ -85,7 +85,7 @@ public function addAction(Request $request)
)
->handleRequest($request);

if ($addressForm->isValid()) {
if ($addressForm->isSubmitted() && $addressForm->isValid()) {
$addressTransfer = new AddressTransfer();
$addressTransfer->fromArray($addressForm->getData(), true);
$addressTransfer->setFkCustomer($idCustomer);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function indexAction(Request $request)
)
->handleRequest($request);

if ($form->isValid()) {
if ($form->isSubmitted() && $form->isValid()) {
$customerTransfer = new CustomerTransfer();
$customerTransfer->fromArray($form->getData(), true);

Expand Down

0 comments on commit 63dd95e

Please sign in to comment.