"File attachments collapsed by default" option hides attachments in IE7

Pinolo@www.drup... - November 12, 2008 - 18:04
Project:Override Node Options
Version:6.x-1.9
Component:Code
Category:bug report
Priority:critical
Assigned:Unassigned
Status:active
Description

I have seen this happen in my only D6 site.
Steps to reproduce:
- Use IE7
- Enable Upload and Override... modules
- Enable file uploads for a content type
- Create a node with attachments for that content type
- Enable the "File attachments collapsible" and "File attachments collapsed by default" options in Override... settings page
- Go to the edit form for the node you created before
- Once you expand the attachments section, you won't see any files, but if you upload one more file, the existing files will appear
- If you disable the "collapsed by default" option and reload the edit form, the uploaded files will show up regularly

The feature works as expected in any other browser I've tested, including IE6

#1

timmillwood - November 13, 2008 - 09:25

Thats very odd because all it uses is the default drupal collapsible / collapsed settings.

I'll have to find a copy of Windows and have a look.

#2

Bartezz - September 9, 2009 - 22:02
Version:6.x-1.x-dev» 6.x-1.9

Finally I found the reason for my file attachments not showing and I can confirm it's the Override Node Options module.
I can confirm it works in every browser I tested except IE7, the uploads are not shown.

To see them either disable collapse by default you can see them.
Or if you do not select any files and click upload, this causes the form to be reloaded by AJAX.

Also happens in the latest version of the module!

I'll try and find the cause but please help with this as it's very critical to me!

Cheers

#3

Bartezz - September 9, 2009 - 22:13

Line #222 in override_node_options.module is causing this, ofcourse this is the same as disabling collapsed by default;

$form['attachments']['#collapsed'] = variable_get('override_node_options_facollapsed', 1);

Commenting it out results in shown attachments again, ofcourse this ain't a fix.
I think it has to do with the way file attachments are loaded into the node/edit form...
Will get back on this!

Cheers

#4

Bartezz - September 9, 2009 - 22:56

Another update before I go to bed...
tableheader.js in misc directory is causing this IE7 bug,

On line #22 -> position: 'fixed',

If you set this to position: 'inline' (temporarily) you will see this is the cause!
Don't know how to fix it though, it's a core thing!

Cheers

 
 

Drupal is a registered trademark of Dries Buytaert.