diff options
-rwxr-xr-x | rt/lib/RT/Transaction.pm | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/rt/lib/RT/Transaction.pm b/rt/lib/RT/Transaction.pm index bd4d83546..3344687da 100755 --- a/rt/lib/RT/Transaction.pm +++ b/rt/lib/RT/Transaction.pm @@ -133,12 +133,6 @@ sub Create { return ( 0, $self->loc( "Transaction->Create couldn't, as you didn't specify an object type and id")); } - - # Set up any custom fields passed at creation. Has to happen - # before scrips. - - $self->UpdateCustomFields(%{ $args{'CustomFields'} }); - #lets create our transaction my %params = ( Type => $args{'Type'}, @@ -169,6 +163,11 @@ sub Create { } } + # Set up any custom fields passed at creation. Has to happen + # before scrips. + + $self->UpdateCustomFields(%{ $args{'CustomFields'} }); + $self->AddAttribute( Name => 'SquelchMailTo', Content => RT::User->CanonicalizeEmailAddress($_) |