-
Notifications
You must be signed in to change notification settings - Fork 147
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 up null issue #391
Fix up null issue #391
Conversation
Codecov ReportAll modified lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #391 +/- ##
=========================================
Coverage 99.37% 99.37%
Complexity 369 369
=========================================
Files 21 21
Lines 1277 1277
=========================================
Hits 1269 1269
Misses 8 8
☔ View full report in Codecov by Sentry. |
There could also be more wrong from the setup, I will have to check first again |
I just ran into this null bug with a fresh install of CakePHP 5.0.2 and Bootstrap UI 5.0.0 Do we need to re-instate your patch or is there a setup issue that needs tweaking? |
@toggenation Do you have a way to reproduce the problem? The only way I can see this happening is when you're using |
Yeah, indeed echo $this->Form->control('Form.result', ['type' => 'textarea', 'class' => 'halfSize']); This is breaking existing code I would be in favor of fixing this, as this is not necessary to blow up this hard IMO |
I've just started migrating a large project from CakePHP 4.5 to 5.0.2 which has many I've search the CakePHP documentation and implies that The HTML spec notes that elements such as |
The error shouldn't happen, but a possible "requirement" of the helper to open a form first would not be related to the HTML specs, but to the magic that the |
@ndm2 thanks for your help on this, I appreciate it! |
In my case there was a type error:
Can be avoided by defaulting it to a valid type