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

[DX] Melodiia FormErrorResponse should support non submitted form #18

Open
Nek- opened this issue Jun 27, 2019 · 0 comments
Open

[DX] Melodiia FormErrorResponse should support non submitted form #18

Nek- opened this issue Jun 27, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@Nek-
Copy link
Contributor

Nek- commented Jun 27, 2019

Currently something like this is required:

        if ($form->isSubmitted() && !$form->isValid()) {
            return new FormErrorResponse($form);
        }

        if (!$form->isSubmitted()) {
            return new FormNotSubmittedResponse();
        }

The FormErrorResponse should return something also for non-submitted form.

@Nek- Nek- added the enhancement New feature or request label Aug 10, 2019
Nek- added a commit to Nek-/Melodiia that referenced this issue Nov 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant