Commit c06275f2 authored by Dries's avatar Dries

- Patch #125636by hunmonk: fixed duplication checking on confirm forms.

parent 25fc5960
......@@ -2152,6 +2152,10 @@ function confirm_form($form, $question, $path, $description = NULL, $yes = NULL,
$cancel = l($no ? $no : t('Cancel'), $path, array('query' => $query, 'fragment' => $fragment));
drupal_set_title($question);
// Confirm form fails duplication check, as the form values rarely change -- so skip it.
$form['#skip_duplicate_check'] = TRUE;
$form['#attributes'] = array('class' => 'confirmation');
$form['description'] = array('#value' => $description);
$form[$name] = array('#type' => 'hidden', '#value' => 1);
......
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