Word count assigned to last node editor instead of node creator
Metafriki - March 7, 2009 - 04:36
| Project: | Word count |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | CrookedNumber |
| Status: | closed |
Jump to:
Description
Not really a bug I think, depends on how you use your drupal installation. In my case, users post comments and editors review and fix formatting, misspelling and others errors. When this happends, a new node revision is created with the editor ID as author BUT, the node content was created by node creator, and I want to asign node count to node creator.
Word count algorith asigns this nodes to the last editor, and I fixed this changing nodes SQL select query to :
SELECT nr.title, nr.body, n.uid, u.name FROM {node_revisions} AS nr INNER JOIN {node} AS n ON nr.vid = n.vid INNER JOIN {users} AS u ON n.uid = u.uid
Hope this helps

#1
I agree. Good call.
Fixed in 5-1.1 and 6-1.1
http://drupal.org/node/583834
http://drupal.org/node/583868
Thanks, Metafriki!
#2
Automatically closed -- issue fixed for 2 weeks with no activity.