Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.6
Component:
user data
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Sep 2009 at 16:38 UTC
Updated:
4 May 2011 at 11:39 UTC
I've created a view similar to a blog:
Node: created year
Node: created month
Node: created day
User: Name
Arguments Screenshot
So "/2009/09/23/Administrator" will list all the nodes created by the Administrator on 9/23/09, and "/2009/09/23/" should list all the users who created nodes on 9/23/09, however there is a catch, if the node was created by an "Anonymous" user, there is no link.
Screenshot - Notice there is a listing for Administrator, and it looks like the administrator posted 3 nodes, and there is another user with NO TITLE who posted 1 (that is the Anonymous Post).
See also: http://drupal.org/node/586828
Comments
Comment #1
merlinofchaos commentedUnfortunately, in the database, the anonymous user has a username of NULL, so this is the expected behavior here. The name for the anonymous user has a lot of special handling in Drupal. "Fixing" this would actually be a new feature, to add special handling for the anonymous user. And allowing the anonymous user in the user: name argument seems like a very strange use case, to me.
Your best bet is to simply add a filter to the view to remove the anonymous user.
Comment #2
ChrisRut commentedSolution Found Thanks to merlinofchaos on IRC: Simply change the MySQL DB table users where UID = 0 set name = Anonymous
Comment #3
Attila commentedAre there any drawbacks to that change?