Skip to content
Snippets Groups Projects
Commit e7982b38 authored by Dries Buytaert's avatar Dries Buytaert
Browse files

- Patch #69228 by openwereld: profile field values that should be browse-able...

- Patch #69228 by openwereld: profile field values that should be browse-able (clickable) are not displayed as such.
parent 39996f51
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -436,7 +436,7 @@ function profile_browse() { ...@@ -436,7 +436,7 @@ function profile_browse() {
// Compile a list of fields to show. // Compile a list of fields to show.
$fields = array(); $fields = array();
$result = db_query('SELECT name, title, type, weight FROM {profile_fields} WHERE fid != %d AND visibility = %d ORDER BY weight', $field->fid, PROFILE_PUBLIC_LISTINGS); $result = db_query('SELECT name, title, type, weight, page FROM {profile_fields} WHERE fid != %d AND visibility = %d ORDER BY weight', $field->fid, PROFILE_PUBLIC_LISTINGS);
while ($record = db_fetch_object($result)) { while ($record = db_fetch_object($result)) {
$fields[] = $record; $fields[] = $record;
} }
...@@ -489,7 +489,7 @@ function profile_browse() { ...@@ -489,7 +489,7 @@ function profile_browse() {
else { else {
// Compile a list of fields to show. // Compile a list of fields to show.
$fields = array(); $fields = array();
$result = db_query('SELECT name, title, type, weight FROM {profile_fields} WHERE visibility = %d ORDER BY category, weight', PROFILE_PUBLIC_LISTINGS); $result = db_query('SELECT name, title, type, weight, page FROM {profile_fields} WHERE visibility = %d ORDER BY category, weight', PROFILE_PUBLIC_LISTINGS);
while ($record = db_fetch_object($result)) { while ($record = db_fetch_object($result)) {
$fields[] = $record; $fields[] = $record;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment