fix: DataForm doesn't send mail if mail fields in tab
This commit is contained in:
parent
185a582ef9
commit
599f62163d
2 changed files with 20 additions and 1 deletions
|
|
@ -9,6 +9,7 @@
|
||||||
(Diona Kidd, Knowmad Technologies)
|
(Diona Kidd, Knowmad Technologies)
|
||||||
|
|
||||||
7.4.15
|
7.4.15
|
||||||
|
- fix: DataForm doesn't send mail if mail fields are in a tab
|
||||||
- fix: Calendar feed list doesn't display in IE
|
- fix: Calendar feed list doesn't display in IE
|
||||||
|
|
||||||
7.4.14
|
7.4.14
|
||||||
|
|
|
||||||
|
|
@ -782,7 +782,25 @@ sub sendEmail {
|
||||||
$row->{"field.value"} = WebGUI::HTML::format($row->{"field.value"},'mixed');
|
$row->{"field.value"} = WebGUI::HTML::format($row->{"field.value"},'mixed');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
my $message = $self->processTemplate($var,$self->get("emailTemplateId"));
|
my @rows = map { @{ $_->{'tab.field_loop'} } } @{$var->{tab_loop}};
|
||||||
|
foreach my $row (@rows) {
|
||||||
|
if ($row->{"tab.field.name"} eq "to") {
|
||||||
|
$to = $row->{"tab.field.value"};
|
||||||
|
} elsif ($row->{"tab.field.name"} eq "from") {
|
||||||
|
$from = $row->{"tab.field.value"};
|
||||||
|
} elsif ($row->{"tab.field.name"} eq "cc") {
|
||||||
|
$cc = $row->{"tab.field.value"};
|
||||||
|
} elsif ($row->{"tab.field.name"} eq "bcc") {
|
||||||
|
$bcc = $row->{"tab.field.value"};
|
||||||
|
} elsif ($row->{"tab.field.name"} eq "subject") {
|
||||||
|
$subject = $row->{"tab.field.value"};
|
||||||
|
} elsif ($row->{"tab.field.type"} eq "textArea") {
|
||||||
|
$row->{"tab.field.value"} =~ s/\n/<br\/>/;
|
||||||
|
} elsif ($row->{"tab.field.type"} eq "textarea") {
|
||||||
|
$row->{"tab.field.value"} = WebGUI::HTML::format($row->{"tab.field.value"},'mixed');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
my $message = $self->processTemplate($var,$self->get("emailTemplateId"));
|
||||||
WebGUI::Macro::process($self->session,\$message);
|
WebGUI::Macro::process($self->session,\$message);
|
||||||
my @attachments = $self->get('mailAttachments')?
|
my @attachments = $self->get('mailAttachments')?
|
||||||
@{$self->getAttachedFiles({returnType=>'attachments',entryId=>$var->{entryId}})}
|
@{$self->getAttachedFiles({returnType=>'attachments',entryId=>$var->{entryId}})}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue