From f73530690ee924e1612b65ed2c039dd4188e8c99 Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Wed, 24 Dec 2008 03:41:40 +0000 Subject: [PATCH] Fix a bug where the session user's name is used instead of the Account owner's name in the Contributions screen. --- docs/changelog/7.x.x.txt | 1 + lib/WebGUI/Account/Contributions.pm | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/docs/changelog/7.x.x.txt b/docs/changelog/7.x.x.txt index 75eb21299..6eb66e89c 100644 --- a/docs/changelog/7.x.x.txt +++ b/docs/changelog/7.x.x.txt @@ -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. diff --git a/lib/WebGUI/Account/Contributions.pm b/lib/WebGUI/Account/Contributions.pm index e23fb703f..c310ec128 100644 --- a/lib/WebGUI/Account/Contributions.pm +++ b/lib/WebGUI/Account/Contributions.pm @@ -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); }