Commit 34eefb70 authored by Steven Wittens's avatar Steven Wittens

#57294: Upload.module should not overwrite other #attributes in form_alter

parent 02f6a3ee
......@@ -244,7 +244,7 @@ function upload_form_alter($form_id, &$form) {
'#weight' => 30,
);
$form['attachments'] += _upload_form($node);
$form['#attributes'] = array('enctype' => 'multipart/form-data');
$form['#attributes']['enctype'] = 'multipart/form-data';
}
}
}
......
......@@ -244,7 +244,7 @@ function upload_form_alter($form_id, &$form) {
'#weight' => 30,
);
$form['attachments'] += _upload_form($node);
$form['#attributes'] = array('enctype' => 'multipart/form-data');
$form['#attributes']['enctype'] = 'multipart/form-data';
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment