[Bps-public-commit] rt-extension-notificationmatrix branch, master, updated. b131fc07b5e1105ab2e99e20faa954d121d252dd
Chia-liang Kao
clkao at bestpractical.com
Wed Jul 7 05:46:08 EDT 2010
The branch, master has been updated
via b131fc07b5e1105ab2e99e20faa954d121d252dd (commit)
from 62b204fe086ed9dfe60174b15f57bfac81323fa2 (commit)
Summary of changes:
lib/RT/Extension/NotificationMatrix/Rule.pm | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
- Log -----------------------------------------------------------------
commit b131fc07b5e1105ab2e99e20faa954d121d252dd
Author: Chia-liang Kao <clkao at clkao.org>
Date: Wed Jul 7 17:47:12 2010 +0800
provide hints and descriptions for the nm rules.
diff --git a/lib/RT/Extension/NotificationMatrix/Rule.pm b/lib/RT/Extension/NotificationMatrix/Rule.pm
index e45643a..e8c6bbb 100644
--- a/lib/RT/Extension/NotificationMatrix/Rule.pm
+++ b/lib/RT/Extension/NotificationMatrix/Rule.pm
@@ -63,6 +63,13 @@ sub LoadTemplate {
return $template;
}
+sub Description {
+ my $self = shift;
+ my $name = ref($self);
+ $name =~ s/^RT::Extension::NotificationMatrix::Rule::// or die "unknown rule: $name";
+ return "Notification for $name";
+}
+
sub Prepare {
my $self = shift;
@@ -85,6 +92,8 @@ sub Prepare {
$email->Prepare;
$self->{__ref} = $ref;
$self->{__email} = $email;
+ $self->{hints} = { class => 'SendEmail',
+ recipients => { To => \@recipients } };
return 1;
}
-----------------------------------------------------------------------
More information about the Bps-public-commit
mailing list