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
[DomCrawler] disabled form fields not reachable anymore #35923
Comments
The change in #34059 has broken the Drupal test suite too. We have code like
The call to checkboxChecked ends up throwing an error I think that the change in #34059 is too broad. |
…ssing in Form" (dmaicher) This PR was merged into the 3.4 branch. Discussion ---------- Revert "bug #28179 [DomCrawler] Skip disabled fields processing in Form" | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | #35923 | License | MIT | Doc PR | - Reverts #34059 See #35923 Commits ------- af17f5a Revert "bug #28179 [DomCrawler] Skip disabled fields processing in Form"
Shouldn't a |
There will be a new monthly patch release in 3 weeks or so. Possibly earlier... not sure. In the meantime just fix |
Symfony version(s) affected: 3.4.38, 4.4.5, 5.0.5
Description
It seems since #34059 a disabled form field is not added to the form anymore at all which seems odd.
In one of my tests I was retrieving a disabled form field and checking its value. This is not possible anymore now.
How to reproduce
Works with 4.4.4 and breaks with 4.4.5:
InvalidArgumentException: Unreachable field "foo"
The text was updated successfully, but these errors were encountered: