In the 6.18 -> 61.9 update, a line as follows was added into the node_form_array function.

+ $node->uid = $user->uid;

This has the undesireable effect of removing the uid for new nodes.

It needs this to fix it.

retrieving revision 1.620
diff -u -b -r1.620 node.module
--- node.module 26 Mar 2006 01:03:29 -0000 1.620
+++ node.module 26 Mar 2006 10:55:22 -0000
@@ -1681,6 +1681,8 @@
* Generate the node editing form array.
*/
function node_form_array($node) {
+ global $user;
+
node_object_prepare($node);

// Set the id of the top-level form tag

CommentFileSizeAuthor
#1 node-global-user.patch576 bytesmerlinofchaos
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

FileSize
576 bytes

Rerolled with the global $user right next to where it is used; patch is pretty easy to see, and I'm a dumbass for missing this in my previous patch. Le sigh.

+1 but I'll let someone else RTBC it.

killes@www.drop.org’s picture

Status: Needs review » Fixed

applied

Anonymous’s picture

Status: Fixed » Closed (fixed)