Closed (works as designed)
Project:
Drupal core
Version:
4.7.0-beta6
Component:
node.module
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Mar 2006 at 01:16 UTC
Updated:
17 Mar 2006 at 05:56 UTC
$node_table_values = array('nid' => $node->nid, 'vid' => $node->vid,
'title' => $node->title, 'type' => $node->type, 'uid' => $node->uid,
'status' => $node->status, 'created' => $node->created,
'changed' => $node->changed, 'comment' => $node->comment,
'promote' => $node->promote, 'moderate' => $node->moderate,
'sticky' => $node->sticky);
should read
$node_table_values = array('nid' => $node->nid, 'vid' => $node->vid,
'title' => $node->title, 'type' => $node->type, 'uid' => $user->uid,
'status' => $node->status, 'created' => $node->created,
'changed' => $node->changed, 'comment' => $node->comment,
'promote' => $node->promote, 'moderate' => $node->moderate,
'sticky' => $node->sticky);
Comments
Comment #1
Zen commenteda) Please don't mark non-critical stuff as critical.
b) If there's a bug, please state what it is.
c) Please provide all modifications in patch form. ( http://drupal.org/diffandpatch )
d) This isn't a bug. $node stores the uid of the user who created the node. $user stores the uid of the current user. They don't necessarily have to be the same.
Marking by design - please reopen if you still believe there's an issue here.
Thanks :)
-K