In the profile.module, the function profile_browse contains two queries at lines 419 and 472 to fetch fields to be displayed. Because the 'page' field (for the page title) is NOT selected, the $field->page property will be false, and the $browse variable in the profile_view_field will evaluate to FALSE. This means that field values that should be browseable are displayed 'plain' instead clickable.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jpulles’s picture

Title: field values that should be browse-able (clickable) are not displayed as such » profile field values that should be browse-able (clickable) are not displayed as such
Priority: Normal » Critical

'profile' added to title to indicate profile module

beginner’s picture

Priority: Critical » Normal
jpulles’s picture

Status: Active » Needs review
FileSize
1.37 KB

Patch added. To test the change, add e.g. a free form list field and a text field with both having a page title and both fields to be displayed on member pages. When requesting the browse list for the second field, the free form field will display without clickable links before applying the path, and with links afterwards.

jpulles’s picture

FileSize
1.35 KB

I'm certain if it is required, but this patch has unix line endings.

jpulles’s picture

Sorry, in previous comment NOT was missing: I'm not certain etc. etc.

beginner’s picture

first, I wouldn't be able to test a patch without unix line endings. I think it is required.

You have both:
single-line textfield
multi-line textfield
the second one does not have a a title page, so I assume you mean the former.

I have tested the patch, but really, I cannot see the difference whether I'm browsing ?q=user/1 or ?q=profile/profile_freeform/banana .

Can you test yourself again, with a fresh cvs head, whether your patch is necessary?
If you are sure it is, explain a bit more how to test the difference.

jpulles’s picture

FileSize
1.35 KB

I just created a new patch for the current cvs head and it is still necessary...
To test it, you can define 2 fields of type 'freeform list', with names e.g. profile_freeform1 and profile_freeform2, as 'Public field, content shown on profile page and on member list pages' and with a page title to be used on the member list pages.
Before the patch is applied, an url as http://localhost/drupal-cvs/?q=profile/profile_freeform1/banana will show a member list with value(s) for the other profile_freeform2 attribute.
After the patch is applied, the values will be clickable links with an url as http://localhost/drupal-cvs/?q=profile/profile_freeform2/coconut.
The difference of applying the patch will only become apparent when having multiple profile fields, so that the other fields are displayed in the member lists.

beginner’s picture

Status: Needs review » Reviewed & tested by the community

ok, I could reproduce that.
The code change is simple.

Dries’s picture

Status: Reviewed & tested by the community » Fixed

Committed to CVS HEAD.

Anonymous’s picture

Status: Fixed » Closed (fixed)