Commit 93172912 authored by Dries's avatar Dries

- Patch #37926 by asimmonds/chx: fixed previewing nodes.

parent 6a7e45d0
......@@ -1670,7 +1670,9 @@ function node_form($node) {
}
function node_form_add_preview($form_id, $form, $edit) {
$form['node_preview'] = array('#value' => node_preview(node_validate($edit)), '#weight' => -100);
$edit = array2object($edit);
node_validate($edit);
$form['node_preview'] = array('#value' => node_preview($edit), '#weight' => -100);
return $form;
}
......
......@@ -1670,7 +1670,9 @@ function node_form($node) {
}
function node_form_add_preview($form_id, $form, $edit) {
$form['node_preview'] = array('#value' => node_preview(node_validate($edit)), '#weight' => -100);
$edit = array2object($edit);
node_validate($edit);
$form['node_preview'] = array('#value' => node_preview($edit), '#weight' => -100);
return $form;
}
......
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