Added some UserList help and small fixes.

This commit is contained in:
Yung Han Khoe 2008-05-24 15:52:59 +00:00
parent bbbabb48cf
commit b398c902e6
3 changed files with 47 additions and 7 deletions

View file

@ -290,10 +290,12 @@ sub view {
"visible"=>$profileField->{visible},
"fieldType"=>$profileField->{fieldType},
});
push (@profileField_loop, {
"profileField_label"=>$label,
"profileField_sortByURL"=>$sortByURL,
});
if($profileField->{visible}){
push (@profileField_loop, {
"profileField_label"=>$label,
"profileField_sortByURL"=>$sortByURL,
});
}
unless($self->get("showOnlyVisibleAsNamed") && $profileField->{visible} != 1){
$var{'profileField_'.$fieldName.'_label'} = $label;
$var{'profileField_'.$fieldName.'_sortByURL'} = $sortByURL;
@ -434,9 +436,11 @@ sub view {
$profileFieldName =~ s/ /_/g;
$profileFieldName =~ s/\./_/g;
my $value = $user->{$profileField->{fieldName}};
push (@profileFieldValues, {
"profile_value"=>$value,
});
if($profileField->{visible}){
push (@profileFieldValues, {
"profile_value"=>$value,
});
}
unless($self->get("showOnlyVisibleAsNamed") && $profileField->{visible} != 1){
$userProperties{'user_profile_'.$profileFieldName.'_value'} = $value;
}