Closed (cannot reproduce)
Project:
Drupal core
Version:
8.0.x-dev
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jan 2008 at 23:38 UTC
Updated:
29 Jul 2014 at 17:44 UTC
Jump to comment: Most recent file
Comments
Comment #1
mfer commentedChecked attribute? What does your $form look like? Are you using #default_value? See http://api.drupal.org/api/file/developer/topics/forms_api_reference.html...
Comment #2
gábor hojtsyYeah, I noticed this as well, while doing last minute testing on Drupal 6 RC2, but was completely puzzled about it. If it has checked="checked" on it like I also noticed in the code, it should be selected. So I don't think this is a server side problem.
Comment #3
scoutbaker commentedhttp://drupal.org/node/208878 appears to be related, if not the same issue. In that issue it is related to the browser being used (IE6, IE7, and Opera 9.25 are working, others are not).
Comment #4
webernet commentedMarked these as duplicates:
http://drupal.org/node/205080
http://drupal.org/node/204948
http://drupal.org/node/208878
Comment #5
webernet commentedAfter a quick look around core, I'm not seeing any radio's selected on:
admin/settings/filters
admin/user/user
admin/build/block/add
admin/user/user
admin/build/themes
Radios are OK on a number of other pages including:
admin/settings/performance
admin/content/types/add.
Comment #6
scoutbaker commentedWorks on IE7:
admin/settings/filters
admin/build/themes
admin/user/user (http://drupal.org/node/204948) may not be the same issue. It behaves this way in D5 as well, so it may be by design.
There was a patch for this same behavior for the caching mode selection in http://drupal.org/node/198332.
Comment #7
litwol commentedMaybe the issue here is the difference between 'radio' and 'radios' fapi type?
Comment #8
pwolanin commentedperhaps this is a problem for radios being rendered out in a table?
on some page's it's fine, such as: admin/settings/clean-urls
On others like: admin/build/themes It's broken. As above - if you look at the page source you see that the default is indeed correctly marked.
I just tried disabling JS and everything returns to normal - it's probably another problem with tableheader.js or some such.
Comment #9
pwolanin commentedComment #10
webernet commentedConfirmed - after disabling javascript (Firefox 2), and ctrl-F5, the radios appear.
Comment #11
traxer commentedConfirmed - after deleting tableheader.js, the default values of radios are visible.
Comment #12
dvessel commentedThis looks to me like a bug with jQuery. Cloning the table and moving it within the DOM is causing it. Previous iterations of the tableheader.js patch only cloned 'thead' but I thought I was being clever doing the whole table since it would inherit more of the original's styles and whatnot. –I'll look into this.
And this isn't critical.
Comment #13
pwolanin commentedHmmm - I think it is critical if the admin interface is partly unusable.
Also - there seems to be another bug, perhaps with the ID applied to the cloned header. At least on admin/build/themes in FF DOM inspector, the id of the cloned tables shows as "undefined-header". Apparently this code needs to check for "undefined", since
http://docs.jquery.com/Attributes
Attached patch fixes that problem, but not the radio selection.
Comment #14
dvessel commentedThis patch does away with cloning the whole table. Only thead is cloned.
The id for the clone was never needed. That was part of a followup patch to resolve a conflict with draggable table rows so it's been removed since it would never create duplicate id's for the table.
Tested in Opera 9.25, Safari 2/3, FF 2 and IE7. All issues seems to be fixed and this includes Safari 2 crashing.
And this extra line added helps Safari keep the header cells aligned when the contents of a body cell pushes the width of all the columns. You can see an example of this in the theme admin page where the screen shots push the widths.
Previously wasn't an issue but that addition doesn't harm anything else.
Comment #15
JirkaRybka commentedI tested #14 on my FF2/Linux, both Garland and custom theme, including forms-in-tables and drag-and-drop. All fine, radios defaults now working, and nothing broken. Should be RTBC, but not setting as such yet, because I can't test with other browsers than FF.
Comment #16
Rowanw commentedTested on Windows Vista with:
Firefox 3 (Minefield nightly)
Safari 3
Opera 9.2.4
IE7
Patch works as expected - no issues with radios, table headers or drag & drop.
Comment #17
gábor hojtsyThanks, committed.
Comment #18
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #19
quicksketchStill a problem in Drupal 7, this needs to be forward-ported.
Comment #20
tr commentedIs this still a problem? I can't reproduce it on the D7 equivalent of any of the example pages cited above.
The tableheader.js code has changed quite a bit in D7, so I suspect this bug no longer exists.
Comment #21
martin_qJust a comment in case anyone else finds this useful. I saw the same symptoms on a form I had built in a D6 module but the solution was different: I needed to remember to include
And that fixed everything.
Comment #22
nod_If reopened please provide sample code.
Comment #23
pcambraJust reproduced this in my contrib Devel images provider, in the branch 7.x-1.x plugins.
$form['#tree'] = TRUE;from devel_image_provider_providers_form function