[Bps-public-commit] rt-extension-notificationmatrix branch, master, updated. 618e72778dea87810983c81903b9a9a323cc8e11
Chia-liang Kao
clkao at bestpractical.com
Tue Jul 27 21:31:51 EDT 2010
The branch, master has been updated
via 618e72778dea87810983c81903b9a9a323cc8e11 (commit)
via e28a89caff5475d6800dc817a258a1a572c076cf (commit)
from e11318786fb43d182ef72ca68c286a8c9dc227b0 (commit)
Summary of changes:
lib/RT/Extension/NotificationMatrix.pm | 19 +++++++++++++++++++
lib/RT/Extension/NotificationMatrix/Rule.pm | 2 +-
2 files changed, 20 insertions(+), 1 deletions(-)
- Log -----------------------------------------------------------------
commit e28a89caff5475d6800dc817a258a1a572c076cf
Author: Chia-liang Kao <clkao at clkao.org>
Date: Tue Jul 27 21:26:12 2010 +0800
rules about external templates.
diff --git a/lib/RT/Extension/NotificationMatrix.pm b/lib/RT/Extension/NotificationMatrix.pm
index 2b6a006..7049a8c 100644
--- a/lib/RT/Extension/NotificationMatrix.pm
+++ b/lib/RT/Extension/NotificationMatrix.pm
@@ -65,6 +65,25 @@ For example: TicketResolved
=back
+Message sent to external recipients (requestors and ccs) will be using
+first found template of:
+
+=over
+
+=item $QueueName-$RuleName-External
+
+For example: General-TicketResolved-External
+
+=item $RuleName-External
+
+For example: TicketResolved-External
+
+=item The default external tempalte defined by the rule
+
+=item The C<Transaction> template
+
+=back
+
=head1 CAVEATS
Internally, the matrix is stored on the queue object as attributes,
commit 618e72778dea87810983c81903b9a9a323cc8e11
Author: Chia-liang Kao <clkao at clkao.org>
Date: Wed Jul 28 09:31:16 2010 +0800
Fix scrips preview hinting.
diff --git a/lib/RT/Extension/NotificationMatrix/Rule.pm b/lib/RT/Extension/NotificationMatrix/Rule.pm
index ab512b0..d16aca2 100644
--- a/lib/RT/Extension/NotificationMatrix/Rule.pm
+++ b/lib/RT/Extension/NotificationMatrix/Rule.pm
@@ -152,7 +152,7 @@ sub Prepare {
$self->{__email} = [($self->PrepareInternal(), $self->PrepareExternal())];
$self->{hints} = { class => 'SendEmail',
- recipients => { To => [ map { $_->{To} } @{$self->{__email}} ] } };
+ recipients => { To => [ map { @{$_->{To}} } @{$self->{__email}} ] } };
return 1;
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list