[Bps-public-commit] r13934 - RT-BugTracker/etc

ruz at bestpractical.com ruz at bestpractical.com
Wed Jul 9 17:41:51 EDT 2008


Author: ruz
Date: Wed Jul  9 17:41:51 2008
New Revision: 13934

Added:
   RT-BugTracker/etc/
   RT-BugTracker/etc/initialdata

Log:
* add a scrip to notify additional addresses

Added: RT-BugTracker/etc/initialdata
==============================================================================
--- (empty file)
+++ RT-BugTracker/etc/initialdata	Wed Jul  9 17:41:51 2008
@@ -0,0 +1,21 @@
+ at ScripActions = (
+    {
+        Name        => 'Notify Additional Addresses', # loc
+        Description => 'Notify additional addresses defined for distribution', # loc
+        ExecModule  => 'NotifyAdditionalAddresses',
+    },
+);
+
+ at Scrips = (
+    {
+        Description => "On create and corresponds notify additonal addresses", # loc
+        ScripCondition => 'User Defined',
+        CustomIsApplicableCode => q[
+            my $type = $self->TransactionObj->Type;
+            return 0 if $type ne 'Create' && $type ne 'Correspond';
+            return 1;
+        ],
+        ScripAction    => 'Notify Additional Addresses',
+        Template       => 'Transaction',
+    },
+);



More information about the Bps-public-commit mailing list