Fix a bad template variable in SendNewletters workflow activity, bug #10953

This commit is contained in:
Colin Kuskie 2009-09-14 10:39:30 -07:00
parent 5a43e24384
commit b57dff3e3e
4 changed files with 140 additions and 3 deletions

View file

@ -157,7 +157,8 @@ Store subscription information for a user into the database.
=head3 $subscriptions
A string containing newline separated subscriptions for a user.
A string containing newline separated subscriptions for a user. A "subscription" is the
fieldId of an asset metadata field joined with the metadata value with a tilde "~".
=head3 $userId

View file

@ -81,7 +81,7 @@ sub execute {
$eh->info("Getting user $userId");
my $user = WebGUI::User->new($self->session, $userId);
next if ($user->isVisitor);
my $emailAddress = $user->profileField("email");
my $emailAddress = $user->get("email");
next if ($emailAddress eq "");
@ -130,7 +130,7 @@ sub execute {
push(@threadLoop, {
title => $thread->getTitle,
synopsis => $thread->get("synopsis"),
body => $thread->get("body"),
body => $thread->get("content"),
url => $siteurl.$thread->getUrl,
});
}