#57294: Upload.module should not overwrite other #attributes in form_alter
parent
02f6a3ee2d
commit
34eefb7072
|
@ -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';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue