diff options
author | Mark Wells <mark@freeside.biz> | 2012-08-21 18:44:31 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2012-08-21 18:44:31 -0700 |
commit | 4e231b1386471a26c37e4d4d4ef236de66fd7e3a (patch) | |
tree | 0317a30f35a93eca011be205c216faa9348bc525 /rt | |
parent | fa2326a36a5ce74e8c9dab504c3274688a297c04 (diff) |
fix transaction custom field handling, #11168
Diffstat (limited to 'rt')
-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($_) |