Closed (duplicate)
Project:
Drupal core
Version:
8.0.x-dev
Component:
forms system
Priority:
Major
Category:
Bug report
Assigned:
Reporter:
Created:
9 Feb 2016 at 10:02 UTC
Updated:
9 Feb 2016 at 17:37 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
tduong commentedUploaded patch adding isset() in template_preprocess_fieldset() (form.inc).
Comment #3
edurenye commentedLooks good to me.
Comment #4
tduong commentedComment #5
swentel commentedDarn, should we add a test for it just to be sure ?
Comment #6
swentel commentedJust wondering: on line 198, there's a already a check on #title_display and assigns it to $variables['title_display'] so maybe we can change the patch just to
Comment #7
swentel commentedSetting to needs work for #6
Comment #8
tduong commentedRerolled and edited the patch according to #6. About the test, it could be nice but I'm not sure how it should be like.
Comment #9
swentel commentedHmm, yeah I tried creating a test too, but I can't trigger it at all - I thought just creating a form element without the #title_display property would do it, but it doesn't trigger the notice at all so I'm wondering from which form it comes from when you do the run-tests ?
Comment #10
berdirIt somehow happens with an element that has '#theme' => 'simpletest_result_summary'. We didn't check yet which one exactly, why it only happens in run-tests.sh and not the UI and why that is even calling that fieldset preprocess function...
Note that it only happens when you use --browser.
Comment #11
tduong commentedComment #12
swentel commentedIt happens in SimpletestResultsForm::addResultForm - funky :)
Don't know if we can even test it, so RTBC for me.
Comment #13
swentel commentedWoops, forgot to move the status.
Comment #14
tim.plunkettThis is failing my contrib tests now.
Shouldn't we be adding test coverage? Or reverting the original patch?
Comment #15
swentel commented@tim.plunkett does it fail your contrib tests on the bot or in the UI ? Because I think it only happens if you use --browser.
SimpletestResultsForm::addResultForm has this code, note the comment
I don't think it has a test for that behavior of #attributes either.
Comment #16
xjmI reverted #2595613: '#title_display' => 'invisible' does not work for composite form elements; can we fix this in that issue and mark this as a duplicate, or is there a reason to keep a separate issue?
Comment #17
swentel commentedWe'll fix it over there.