Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix new form namespace #1807

Merged
merged 1 commit into from
Dec 9, 2021
Merged

fix new form namespace #1807

merged 1 commit into from
Dec 9, 2021

Conversation

solverat
Copy link
Contributor

@solverat solverat commented Dec 2, 2021

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Fixed tickets --

This is an regression of #1597. The checkout forms does now comes with a namespace "coreshop". So checkout_finisher is not in range anymore. This PR fixes that.

(Form validation will fail for this form also)

@solverat
Copy link
Contributor Author

solverat commented Dec 2, 2021

There is more. With that, the response fragment is not valid anymore:

$checkoutFinisherUrl = $request->get('checkout_finisher');
return new RedirectResponse($checkoutFinisherUrl);

Since this is now an array ($request->get('coreshop')['checkout_finisher'];). Not sure how to handle this. Removing the coreshop namespace from checkout steps could be a solution but is also inconsistent.

@ramundomario
Copy link
Contributor

I reproduced too. Basically when terms are not accepted, form appear as not submitted and validation error is not shown.
Instead, if terms are accepted, the form appear submitted and everything works fine.
Let's wait thoughts from @dpfaffenbauer about get url from response.

@dpfaffenbauer dpfaffenbauer merged commit c7ecdec into coreshop:2.2 Dec 9, 2021
@ramundomario
Copy link
Contributor

There is more. With that, the response fragment is not valid anymore:

$checkoutFinisherUrl = $request->get('checkout_finisher');
return new RedirectResponse($checkoutFinisherUrl);

Since this is now an array ($request->get('coreshop')['checkout_finisher'];). Not sure how to handle this. Removing the coreshop namespace from checkout steps could be a solution but is also inconsistent.

Reminder, currently it is not possible to get to the payment step @dpfaffenbauer

@dpfaffenbauer
Copy link
Member

Can you please open a separate story for that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants