[Bps-public-commit] rt-extension-notificationmatrix branch, master, updated. 796c3574bbb32e9be08c4032803684584c519b8c

Jesse Vincent jesse at bestpractical.com
Thu Jul 29 11:16:48 EDT 2010


The branch, master has been updated
       via  796c3574bbb32e9be08c4032803684584c519b8c (commit)
      from  740e14670c16fd80a202d69984a2b884a3ce88b3 (commit)

Summary of changes:
 lib/RT/Extension/NotificationMatrix.pm             |    1 +
 .../NotificationMatrix/Rule/TicketRepliedTo.pm     |   40 ++++++++++++++++++++
 2 files changed, 41 insertions(+), 0 deletions(-)
 create mode 100644 lib/RT/Extension/NotificationMatrix/Rule/TicketRepliedTo.pm

- Log -----------------------------------------------------------------
commit 796c3574bbb32e9be08c4032803684584c519b8c
Author: Jesse Vincent <jesse at bestpractical.com>
Date:   Thu Jul 29 11:16:58 2010 -0400

    First pass on TicketRepliedTo

diff --git a/lib/RT/Extension/NotificationMatrix.pm b/lib/RT/Extension/NotificationMatrix.pm
index b6e50e9..407d9f9 100644
--- a/lib/RT/Extension/NotificationMatrix.pm
+++ b/lib/RT/Extension/NotificationMatrix.pm
@@ -9,6 +9,7 @@ RT::Ruleset->Add(
     Rules => [
         'RT::Extension::NotificationMatrix::Rule::TicketCreated',
         'RT::Extension::NotificationMatrix::Rule::TicketCommented',
+        'RT::Extension::NotificationMatrix::Rule::TicketRepliedTo',
         'RT::Extension::NotificationMatrix::Rule::TicketTaken',
         'RT::Extension::NotificationMatrix::Rule::TicketResolved',
         'RT::Extension::NotificationMatrix::Rule::TicketUpdatedExternally',
diff --git a/lib/RT/Extension/NotificationMatrix/Rule/TicketRepliedTo.pm b/lib/RT/Extension/NotificationMatrix/Rule/TicketRepliedTo.pm
new file mode 100644
index 0000000..2ad4350
--- /dev/null
+++ b/lib/RT/Extension/NotificationMatrix/Rule/TicketRepliedTo.pm
@@ -0,0 +1,40 @@
+package RT::Extension::NotificationMatrix::Rule::TicketRepliedTo;
+use strict;
+use warnings;
+use base 'RT::Extension::NotificationMatrix::Rule';
+
+use constant NM_Entry => 'On correspondence';
+use constant DefaultTemplate => 'Admin Correspondence';
+use constant DefaultExternalTemplate => 'Correspondence';
+use constant Description => 'On correspondence';
+
+sub ConditionMatched {
+    my $self = shift;
+    return $self->ScripConditionMatched("On Correspond");
+}
+
+=head Templates
+
+For external notification, the first template found will be used:
+
+=over
+
+=item Correspondence
+
+=item Transaction
+
+=back
+
+For internal notification, the first template found will be used:
+
+=over
+
+=item Admin Correspondence
+
+=item Transaction
+
+=back
+
+=cut
+
+1;

-----------------------------------------------------------------------



More information about the Bps-public-commit mailing list