Closed (fixed)
Project:
User Points
Version:
5.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 May 2007 at 04:18 UTC
Updated:
12 Jun 2007 at 02:17 UTC
If a node or comment is updated with the author/owner changed to another user, userpoints are not correctly updated to reflect this change. There is some code in userpoints_nodeapi to handle the 'update' case, but it doesn't work because uid has already changed at that point. We need to capture and store the original uid at 'prepare' stage. Similar changes are made to hook_comment.
Patch attached, please review. Thanks.
| Comment | File | Size | Author |
|---|---|---|---|
| userpoints_change_author.patch | 2.55 KB | dami |
Comments
Comment #1
kbahey commentedCommitted to 5.x and HEAD.
Thanks
Comment #2
(not verified) commented