Closed (fixed)
Project:
FileField
Version:
6.x-3.0-alpha5
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Nov 2008 at 01:10 UTC
Updated:
18 Feb 2009 at 02:40 UTC
Around line 487 in the filefield_js() function:
The second time a form_builder() function is used the resulting $form is stripped of previous weights added to its elements via processing functions. This basically causes the fields inside the updated widget to change places right after uploading. I assume the form_builder function returns the form this way because the $form array submitted to it lacks any weights thus assuming there's no need to sort it. Only an assumption. I'm sure its not that important considering that not too many people want to switch around the fields inside a widget , but I thought you'd like to know.
Thanks a lot for the great module!
Comments
Comment #1
dopry commentedI cannot reproduce with HEAD.