Closed (duplicate)
Project:
Drupal core
Version:
6.x-dev
Component:
javascript
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Jul 2010 at 11:11 UTC
Updated:
3 Nov 2011 at 18:21 UTC
Jump to comment: Most recent file
Comments
Comment #1
harcher commentedComment #2
quicksketchSounds like a CCK issue. FileField is not responsible for managing multiple values or the drag and drop ordering of multiple values.
Comment #3
tmsimont commentedThis issue persists in the most recent CCK release. I'm updating the title, and merging a duplicate (if I can... http://drupal.org/node/660864) .
The type of field is irrelevant to the problem. In this particular issue, hga77 had a problem with filefield. It happens with text fields, too.
To reproduce:
1) create a field group
2) set field group to "collapsed"
3) create a field with unlimited number
The biggest issue is that
td.delta-orderdoes not get hidden by the tabledrag javascript. There's another related issue (http://drupal.org/node/808078?mode=2&sort=2) of a bunch of extra scrollbars, too.It seems that at some point there was also another issue in IE (http://drupal.org/node/425148) -- I'm not experiencing that, but figured it would be worth noting as it seems that the "collapsed" fieldgroup (not "collapsible") is pretty buggy all around...
Comment #4
tmsimont commentedI think I found the problem in tabledrag.js:
because the cell is hidden on load by the collapsed class, then
cell.css('display' != 'none)returns false, causing thehideColumns()script to abort before the column is hidden.Removing that code hides the column, but not the table head.. more in a bit...
Comment #5
tmsimont commentedhead stays because of this:
the head is hidden if collapsed... returning nothing
Comment #6
tmsimont commentedI fixed the problem by replacing a function in tabledrag.js
Previously, that file was ignoring the .delta-order column if it was hidden on load. This caused a problem with "collapsed" fieldsets, because their delta dropdown is hidden on load!
I added a check for "hideColumns-processed" in place of the psuedo-selector
:hiddenandcell.css('display') != 'none'I've changed this to core because tabledrag.js is not CCK.
This actually also affects JQuery update, as that file is replaced. If you have that module enabled, you'll have to update the tabledrag.js that comes packaged with it.
Comment #7
tmsimont commentedpatch attach, also -- i had previously set the wrong Drupal version.
NOTE: this is for the core. if you're running JQuery Update, see http://drupal.org/node/1298618
Comment #8
tmsimont commentedhmm not sure why that got rejected -- could be the way i made the patch, but i think this really needs review as I found 3 total posts related to this issue. it's an out of the box bug and seems easy to fix... y u no likey my patch?
Comment #9
Everett Zufelt commentedIs this happening in 8.x or 7.x? Patches should be rolled against the latest version and then backported where appropriate.
Comment #10
tmsimont commentedPretty sure it's not an issue in 7.x, this is
hideColumns()in 7:pretty different.. looks like it uses a class to ID what needs to be hidden as my patch for 6.x does.
I can't test in 7.x -- I just tried in 7.7 and can't even add a field to a custom content type? also, there doesn't seem to be a way to even add a fieldset in 7 core...
http://drupal.org/node/1022036
Comment #12
tmsimont commentedDuplicate.. http://drupal.org/node/303189