Closed (outdated)
Project:
Drupal core
Version:
6.x-dev
Component:
node system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
30 May 2010 at 10:01 UTC
Updated:
2 Mar 2016 at 22:18 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
oddbit commentedThis one has a number of related issues on this topic already. For example:
#659962: Nodes with a $node->uid assigned can not have author changed
#398110: node_submit resets $node->uid
The issue is also present in 7.x so I have added an issue for that (with a suggested patch): #1028000: Clarify the behavior of node_submit()
Comment #3
oddbit commentedNew try with v6.20
Comment #4
oddbit commentedComment #6
oddbit commentedComment #7
pfrenssenPatch looks good, but the problem still exists in 8.x and should be fixed there first. This is the same patch rerolled against 8.x-dev.
Comment #9
marcingy commented$user is used in d8 so it needs to move back to d7.
Comment #10
bleen commentedthis is a patch against D7
Comment #11
bleen commentednow that I think of it ... tagging
Comment #12
Niklas Fiekas commentedAs the summary says: Not even f8526cb5 that added node_submit() initially used $user. It's not used, so whatever happens - it's safe to remove it.
I also re-verified that D8 doesn't have the same issue.
Comment #13
Niklas Fiekas commentedAdding coding standards tag.
Comment #14
jhodgdonIgnoring patches in comments #1-8 above, because they seem to be doing something other than the simple patch in #10 (which matches the issue that was actually submitted) and they also seem to be taken care of on other issues... the patch in #10 is a no-brainer cruft removal, and I committed it to Drupal 7.
It appears that $user is not used in 6.x either, so moving to their for backport consideration.
Comment #15
pfrenssenRolled patch for D6.
Comment #16
Niklas Fiekas commentedThank you, pfrenssen.
(Obviously http://api.drupal.org/api/drupal/modules%21node%21node.module/function/n... indeed doesn't use that variable.)
Comment #17
star-szrNothing more for a novice to do here…
Comment #19
star-szrComment #20
star-szrnode.module component went away.