Whenever a File field is hidden by workflow fields, a javascript error is generated on the node editing form. This is the error (as shown by Firebug):

button is undefined (drupal.js, line 31)
button.onmouseover = button.onfocus = function() {

It seems that the javascript settings of the upload part of the form are not removed. This is critical because the collapsible fieldsets in the form stop working and stay collapsed.

Comments

peterpoe’s picture

Status: Active » Needs review
StatusFileSize
new689 bytes

Here is a simple patch that fixes the error.

peterpoe’s picture

StatusFileSize
new661 bytes

I found that the change had to be applied to invisible file fields as well as uneditable. Fixed the problem with this new patch.

infojunkie’s picture

Assigned: Unassigned » infojunkie
Status: Needs review » Fixed

Committed in latest dev release. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.