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

drewish’s picture

Status: Active » Postponed (maintainer needs more info)

i guess i'm missing the difference between those two...

Javache’s picture

I'm sorry.
The replacement should be $form['#attributes']["enctype"] = "multipart/form-data"; so it doesn't overwrite the rest of the array.

sun’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

Too minor. If this code is still present, we'll fix it in our major code clean-up. Thanks anyway for letting us know.