diff options
author | David M <davidmj@users.sourceforge.net> | 2007-04-13 03:55:33 +0000 |
---|---|---|
committer | David M <davidmj@users.sourceforge.net> | 2007-04-13 03:55:33 +0000 |
commit | 252faba2d9ce3dc5baa2a660f4be2676e927baea (patch) | |
tree | 0e781ea1e47062788ff09b6c1f62369d38c73c64 /phpBB/includes/functions_profile_fields.php | |
parent | #9795 (diff) | |
download | phpbb-252faba2d9ce3dc5baa2a660f4be2676e927baea.tar.gz phpbb-252faba2d9ce3dc5baa2a660f4be2676e927baea.tar.bz2 phpbb-252faba2d9ce3dc5baa2a660f4be2676e927baea.zip |
#9677
git-svn-id: file:///svn/phpbb/trunk@7338 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_profile_fields.php')
-rw-r--r-- | phpBB/includes/functions_profile_fields.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/phpBB/includes/functions_profile_fields.php b/phpBB/includes/functions_profile_fields.php index 05bea54bd7..a645b67a22 100644 --- a/phpBB/includes/functions_profile_fields.php +++ b/phpBB/includes/functions_profile_fields.php @@ -62,10 +62,14 @@ class custom_profile // Return templated field $tpl_snippet = $this->process_field_row('change', $row); + // Some types are multivalue, we can't give them a field_id as we would not know which to pick + $type = (int) $row['field_type']; + $template->assign_block_vars('profile_fields', array( 'LANG_NAME' => $row['lang_name'], 'LANG_EXPLAIN' => $row['lang_explain'], 'FIELD' => $tpl_snippet, + 'FIELD_ID' => ($type == 6 || ($type == 4 && $row['field_length'] == '1')) ? '' : 'pf_' . $row['field_ident'], 'S_REQUIRED' => ($row['field_required']) ? true : false) ); } |