Closed (won't fix)
Project:
Image
Version:
6.x-1.0-alpha2
Component:
image.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Jul 2008 at 21:30 UTC
Updated:
14 Jan 2009 at 00:00 UTC
I noticed this issue while trying to add a class to my custom node type form.
On 2 occasions this module will overwrite the already set #attributes.
This happens in image.module and immage_attach.module.
A fix is simple: just replace $form['#attributes'] = array("enctype" => "multipart/form-data"); with $form['#attributes'] = array("enctype" => "multipart/form-data");
Comments
Comment #1
drewish commentedi guess i'm missing the difference between those two...
Comment #2
Javache commentedI'm sorry.
The replacement should be
$form['#attributes']["enctype"] = "multipart/form-data";so it doesn't overwrite the rest of the array.Comment #3
sunToo minor. If this code is still present, we'll fix it in our major code clean-up. Thanks anyway for letting us know.