Error when hiding File fields
peterpoe - March 25, 2008 - 14:45
| Project: | Workflow Fields |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | kratib |
| Status: | closed |
Description
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.

#1
Here is a simple patch that fixes the error.
#2
I found that the change had to be applied to invisible file fields as well as uneditable. Fixed the problem with this new patch.
#3
Committed in latest dev release. Thanks!
#4
Automatically closed -- issue fixed for two weeks with no activity.