Commit 8c8af42c authored by drumm's avatar drumm
Browse files

#62366 by malex, Steven, and fgm: XHTML error, duplicate ids on hidden form id element.

parent d1764d11
......@@ -79,7 +79,7 @@ function drupal_get_form($form_id, &$form, $callback = NULL) {
}
}
if (isset($form_id)) {
$form['form_id'] = array('#type' => 'hidden', '#value' => $form_id);
$form['form_id'] = array('#type' => 'hidden', '#value' => $form_id, '#id' => str_replace('_', '-', "edit-$form_id"));
}
if (!isset($form['#id'])) {
$form['#id'] = $form_id;
......
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