-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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: render form fields have switch condition for theme #13779
Conversation
If conditional form is rendered, theme modified templates did not used. It seems because condition here is in opposite
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch 👍 Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense 👍
The tests were failing because the theme didn't have that twig template. I fixed it with some twig magic |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 5.x #13779 +/- ##
============================================
- Coverage 62.17% 62.17% -0.01%
Complexity 34211 34211
============================================
Files 2249 2249
Lines 102309 102309
============================================
- Hits 63608 63607 -1
- Misses 38701 38702 +1 |
If conditional form is rendered, themes modified templates did not used. It seems because condition here is switched. In theory if for should be rendered without any theme, its must raise exception from my point of view.
Description:
Steps to test this PR: