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

@ -8,6 +8,7 @@
Kamerbeek / Oqapi).
- fixed: Make sure that Form subclasses are found by WebGUI::Form::FieldType
- fixed #9356: Data Form Mail Fields
- fixed #9365: Account: when viewing another person's contribution, it displays my name
7.6.7
- fixed #9263: Thingy possibleValues processing, and List type autodetection.

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);
}