--- node-45.module Sat Oct 30 17:00:45 2004 +++ node-rev.module Wed Nov 3 09:32:43 2004 @@ -1051,9 +1051,6 @@ function node_validate($node) { $node->teaser = node_teaser($node->body); } - // Create a new revision when required. - $node = node_revision_create($node); - if (user_access('administer nodes')) { // Set up default values, if required. if (!$node->created) { @@ -1097,6 +1094,9 @@ function node_validate($node) { $node->revision = variable_get("node_revision_$node->type", 0); unset($node->created); } + + // Create a new revision when required. + $node = node_revision_create($node); // Do node-type-specific validation checks. node_invoke($node, 'validate');