Needs work
Project:
Drupal core
Version:
main
Component:
forms system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
2 May 2016 at 14:46 UTC
Updated:
28 May 2026 at 06:03 UTC
Jump to comment: Most recent
Comments
Comment #6
catchComment #11
aayushpathak commentedworking on it ...
Comment #13
aayushpathak commentedAdded fallback handling for missing #description_display in FormPreprocess to preserve the default 'after' behavior and avoid warnings.
Comment #14
smustgrave commentedThis one appears to need a summary update:.
Always wonder vs adding a fallback if there’s a bug somewhere and this fix is masking a different issue?
Maybe a test case could help figure that out
Comment #15
aayushpathak commentedThanks for the review. Updated the issue summary and added regression test coverage to verify the behavior when elements bypass FormBuilder.
The tests reproduce the missing #description_display case and confirm the fallback preserves the existing default after behavior without affecting explicit values.
CI is also passing.
Comment #16
smustgrave commentedThere not an existing test we could expand vs a brand new one?
Comment #17
aayushpathak commentedSearched the existing test suite under core/tests/Drupal/Tests/Core/Form/ — there is currently no existing test covering FormPreprocess or preprocessFormElement. So a new test class appears to be the only option here. Happy to be pointed to a specific file if there is one in mind.