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

4.7.x
Steven Wittens 2006-04-04 23:40:42 +00:00
parent 02f6a3ee2d
commit 34eefb7072
2 changed files with 2 additions and 2 deletions

View File

@ -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';
}
}
}

View File

@ -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';
}
}
}