[Rt-commit] rt branch, 4.2/default-scrip-stage-in-initialdata, created. rt-4.2.2-11-g3664f1b

Jim Brandt jbrandt at bestpractical.com
Mon Feb 3 15:40:45 EST 2014


The branch, 4.2/default-scrip-stage-in-initialdata has been created
        at  3664f1b58d491b55bf0a3f8f1e834a6ecdc3668a (commit)

- Log -----------------------------------------------------------------
commit 3664f1b58d491b55bf0a3f8f1e834a6ecdc3668a
Author: Jim Brandt <jbrandt at bestpractical.com>
Date:   Mon Feb 3 15:40:09 2014 -0500

    Default scrip Stage to TransactionCreate in initialdata

diff --git a/lib/RT/Handle.pm b/lib/RT/Handle.pm
index a8652e4..f0cc814 100644
--- a/lib/RT/Handle.pm
+++ b/lib/RT/Handle.pm
@@ -1159,6 +1159,8 @@ sub InsertData {
                 $RT::Logger->debug( $return ."." );
             }
             foreach my $q ( @queues ) {
+                $item->{'Stage'} = $item->{'Stage'}
+                    ? $item->{'Stage'} : 'TransactionCreate';
                 my ($return, $msg) = $new_entry->AddToObject(
                     ObjectId => $q,
                     Stage    => $item->{'Stage'},

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


More information about the rt-commit mailing list