diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-17 05:32:48 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-02-17 05:32:48 +0000 |
commit | 94a0bb3afda084011f13a9c6d626d2706a8844c3 (patch) | |
tree | da04a571dbfecd652e642e9a8b00ff91b3ff1d67 /modules/node | |
parent | 579e39b46555854b0b38b518f59a71cd9e71c4ae (diff) | |
download | brdo-94a0bb3afda084011f13a9c6d626d2706a8844c3.tar.gz brdo-94a0bb3afda084011f13a9c6d626d2706a8844c3.tar.bz2 |
#716284 by mikeryan: Fixed node_object_prepare() doesn't recognize is_new().
Diffstat (limited to 'modules/node')
-rw-r--r-- | modules/node/node.pages.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/node/node.pages.inc b/modules/node/node.pages.inc index b0fa5544e..0da6bdb17 100644 --- a/modules/node/node.pages.inc +++ b/modules/node/node.pages.inc @@ -90,7 +90,7 @@ function node_object_prepare($node) { // Set up default values, if required. $node_options = variable_get('node_options_' . $node->type, array('status', 'promote')); // If this is a new node, fill in the default values. - if (!isset($node->nid)) { + if (!isset($node->nid) || isset($node->is_new)) { foreach (array('status', 'promote', 'sticky') as $key) { // Multistep node forms might have filled in something already. if (!isset($node->$key)) { |