summaryrefslogtreecommitdiff
path: root/modules/node/node.module
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-30 02:52:08 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2010-01-30 02:52:08 +0000
commit43cdf31483023bda61935186ba20184b01543125 (patch)
tree1ec08ca32b348f3d6dbdadf08c896dccc85d6e54 /modules/node/node.module
parente5f48f0f780ac0ea08ecbf31c85f9bcdc80147ac (diff)
downloadbrdo-43cdf31483023bda61935186ba20184b01543125.tar.gz
brdo-43cdf31483023bda61935186ba20184b01543125.tar.bz2
#492186 follow-up by nvanhove and Dave Reid: Fixed Authoring information is never updated. (with tests)
Diffstat (limited to 'modules/node/node.module')
-rw-r--r--modules/node/node.module6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/node/node.module b/modules/node/node.module
index d54f75e0a..1bbeefaa3 100644
--- a/modules/node/node.module
+++ b/modules/node/node.module
@@ -931,9 +931,8 @@ function node_submit($node) {
global $user;
// A user might assign the node author by entering a user name in the node
- // form, which we then need to translate to a user ID, unless we've already
- // been provided a user ID by other means.
- if (!empty($node->name) && !isset($node->uid)) {
+ // form, which we then need to translate to a user ID.
+ if (isset($node->name)) {
if ($account = user_load_by_name($node->name)) {
$node->uid = $account->uid;
}
@@ -941,6 +940,7 @@ function node_submit($node) {
$node->uid = 0;
}
}
+
$node->created = !empty($node->date) ? strtotime($node->date) : REQUEST_TIME;
$node->validated = TRUE;