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

peterpoe - March 25, 2008 - 16:31
Status:active» needs review

Here is a simple patch that fixes the error.

AttachmentSize
workflow_fields_filefield.patch 689 bytes

#2

peterpoe - March 25, 2008 - 17:15

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

AttachmentSize
workflow_fields_filefield_2.patch 661 bytes

#3

kratib - April 1, 2008 - 20:31
Assigned to:Anonymous» kratib
Status:needs review» fixed

Committed in latest dev release. Thanks!

#4

Anonymous (not verified) - April 15, 2008 - 20:31
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.