Commit e1022123 authored by Gábor Hojtsy's avatar Gábor Hojtsy

#173995 by Desbeers: when creating a new node, default values are inserted...

#173995 by Desbeers: when creating a new node, default values are inserted into the object on preview, overwriting existing user provided values
parent 470b2e37
......@@ -107,7 +107,9 @@ function node_form(&$form_state, $node) {
$node->$key = NULL;
}
}
node_object_prepare($node);
if (!isset($form_state['node_preview'])) {
node_object_prepare($node);
}
// Set the id of the top-level form tag
$form['#id'] = 'node-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