summaryrefslogtreecommitdiffstats
path: root/Kernel/Output/HTML/DefaultRecipient.pm
diff options
context:
space:
mode:
authorAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-25 17:13:14 +0100
committerAlexander Sulfrian <alex@spline.inf.fu-berlin.de>2015-01-25 19:15:59 +0100
commita6737a8116e6145d1556a5359078103734f26a34 (patch)
treef053cce28155d630eca62c79b48156ebb67ed752 /Kernel/Output/HTML/DefaultRecipient.pm
parent37f18efd3d3195395d029b25a20fda472691cbe9 (diff)
downloadDefaultRecipient-a6737a8116e6145d1556a5359078103734f26a34.tar.gz
DefaultRecipient-a6737a8116e6145d1556a5359078103734f26a34.tar.bz2
DefaultRecipient-a6737a8116e6145d1556a5359078103734f26a34.zip
Add AddCc and AddBcc.
AddBcc does not work because the default template does not support to prefill the bcc.
Diffstat (limited to 'Kernel/Output/HTML/DefaultRecipient.pm')
-rw-r--r--Kernel/Output/HTML/DefaultRecipient.pm23
1 files changed, 20 insertions, 3 deletions
diff --git a/Kernel/Output/HTML/DefaultRecipient.pm b/Kernel/Output/HTML/DefaultRecipient.pm
index 775abb2..3965d9a 100644
--- a/Kernel/Output/HTML/DefaultRecipient.pm
+++ b/Kernel/Output/HTML/DefaultRecipient.pm
@@ -64,7 +64,9 @@ sub Run {
);
my $RemoveTo = 0;
- my @Addresses = ();
+ my @ToAddresses = ();
+ my @CcAddresses = ();
+ my @BccAddresses = ();
foreach my $ID ( values %MappedDefaultRecipient ) {
my %DefaultRecipient = $Self->{DefaultRecipientObject}->Get(
ID => $ID,
@@ -72,7 +74,13 @@ sub Run {
$RemoveTo = 1 if $DefaultRecipient{RemoveTo};
if ( $DefaultRecipient{AddTo} ne '' ) {
- push @Addresses, $DefaultRecipient{AddTo};
+ push @ToAddresses, $DefaultRecipient{AddTo};
+ }
+ if ( $DefaultRecipient{AddCc} ne '' ) {
+ push @CcAddresses, $DefaultRecipient{AddCc};
+ }
+ if ( $DefaultRecipient{AddBcc} ne '' ) {
+ push @BccAddresses, $DefaultRecipient{AddBcc};
}
}
@@ -88,7 +96,7 @@ sub Run {
}
# add new addresses
- foreach my $Address ( @Addresses ) {
+ foreach my $Address ( @ToAddresses ) {
$Self->{LayoutObject}->Block(
Name => 'PreFilledToRow',
Data => {
@@ -97,6 +105,15 @@ sub Run {
);
}
+ foreach my $Address ( @CcAddresses ) {
+ $Self->{LayoutObject}->Block(
+ Name => 'PreFilledCcRow',
+ Data => {
+ Email => $Address,
+ },
+ );
+ }
+
return $Param{Data};
}