Fix a bug where the session user's name is used instead of the Account owner's name

in the Contributions screen.
This commit is contained in:
Colin Kuskie 2008-12-24 03:41:40 +00:00
parent 15531fc7b0
commit f73530690e
2 changed files with 7 additions and 0 deletions

View file

@ -216,6 +216,12 @@ sub www_view {
$self->appendCommonVars($var);
$p->appendTemplateVars($var);
#Overwrite these
my $user = WebGUI::User->new($session,$userId);
$var->{'user_full_name' } = $user->getWholeName;
$var->{'user_member_since' } = $user->dateCreated;
return $self->processTemplate($var,$self->getViewTemplateId);
}