Not every term for a given profile field returns expected result list

Pinolo@www.drup... - October 4, 2007 - 15:10
Project:Drupal
Version:5.2
Component:profile.module
Category:bug report
Priority:normal
Assigned:Pinolo@www.drupalitalia.org
Status:by design
Description

I have a website where people who register must indicate a field on their profile and this field (shown in their user page) can be used to access a list of other people who have the same value in the field.
Unfortunately, this doesn't work for every value. The field indicates a language and, for example, it works ok with Italian, but not for Polish.
You can see by yourself (you must register to see users profiles):
- go to http://cl10n.rwx.it/
- sign up for an account
- wait for the confirmation of the account (I must validate every subscription)
- login to the site and go to http://cl10n.rwx.it/profile/profile_language/Polish (no results, there should be one)
- go to http://cl10n.rwx.it/profile/profile_language/Italian (OK: one result)

#1

Pinolo@www.drup... - October 23, 2007 - 15:48

Maybe I identified the issue: the users not showing up in the list seem to be the ones that never logged in. Weird! I'll look into the code and see if I can patch quickly.

#2

Pinolo@www.drup... - October 23, 2007 - 20:52
Assigned to:Anonymous» Pinolo@www.drupalitalia.org

#3

Pinolo@www.drup... - October 23, 2007 - 21:28
Status:active» needs review

OK, here are the patches for 5.3 and 6b2 and a brief explanation.

The current profile.module picks for profile browsing only users who have logged in at least once. This brings up a distortion: a user who registered and last logged in one year ago will be browsable; one that has just signed up and has not logged in yet, doesn't appear in the list. This patch removes the requirement to have logged in at east once, for users to appear in the profile field browsing pages, letting people know who actually signed up in a particular category, giving to administrators and other users an comprehensive overview.

AttachmentSize
profile-see-never-logged-in-users-in-list-180806-5.3.patch 804 bytes

#4

Pinolo@www.drup... - October 23, 2007 - 21:29

Here's the 6b2 patch

AttachmentSize
profile-see-never-logged-in-users-in-list-180806-6b2.patch 787 bytes

#5

drumm - November 7, 2007 - 08:16
Status:needs review» by design

Users who have never logged in are not shown in the UI, except to administrators. The idea is it is less cheap for spammers to make web pages on your site.

 
 

Drupal is a registered trademark of Dries Buytaert.