Project:Workflow Fields
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:infojunkie
Status:closed (fixed)

Issue Summary

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

#1

Status:active» needs review

Here is a simple patch that fixes the error.

AttachmentSize
workflow_fields_filefield.patch 689 bytes

#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.

AttachmentSize
workflow_fields_filefield_2.patch 661 bytes

#3

Assigned to:Anonymous» infojunkie
Status:needs review» fixed

Committed in latest dev release. Thanks!

#4

Status:fixed» closed (fixed)

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

nobody click here