Closed (fixed)
Project:
Addnode
Version:
5.x-1.2
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Jun 2007 at 22:34 UTC
Updated:
21 Dec 2007 at 07:31 UTC
when I create a node and in-page define a new referenced node with addnode, the owner of the first node is my username but Anonymous for the node created with addnode.
Comments
Comment #1
Lionfish commentedWell spotted!
I've got a fix that should do the job, but I'm sure there's a better way of doing this (I might need to discuss it with fago as it relates to the subform_element module). I've loaded the node and changed its id, before saving it again:
$new_node = node_load($newnid);
$new_node->uid = $uid;
node_save($new_node);
in addnode_addnids_submit function.
These changes will be in the next release (v1.3).
Thanks for reporting the bug kvantomme!
Mike.
Comment #2
(not verified) commentedComment #3
edex13 commentedsince version 5.x-1.3 still not available, can you guide how to fix this problem? where should i put those code in addnode_addnids_submit function?