Commit ede01929 authored by Dries's avatar Dries

- Patch #104280 by dww: node_form_add_preview() broken if you alter the Preview button at all.

parent 633fcda8
......@@ -2045,7 +2045,7 @@ function node_form_add_preview($form) {
global $form_values;
$op = isset($form_values['op']) ? $form_values['op'] : '';
if ($op == $form_values['preview']) {
if ($op == t('Preview')) {
drupal_validate_form($form['form_id']['#value'], $form);
if (!form_get_errors()) {
// We pass the global $form_values here to preserve changes made during form validation
......
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