[freeside-commits] branch master updated. 4e231b1386471a26c37e4d4d4ef236de66fd7e3a

Mark Wells mark at 420.am
Tue Aug 21 18:44:44 PDT 2012


The branch, master has been updated
       via  4e231b1386471a26c37e4d4d4ef236de66fd7e3a (commit)
      from  fa2326a36a5ce74e8c9dab504c3274688a297c04 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4e231b1386471a26c37e4d4d4ef236de66fd7e3a
Author: Mark Wells <mark at freeside.biz>
Date:   Tue Aug 21 18:44:31 2012 -0700

    fix transaction custom field handling, #11168

diff --git a/rt/lib/RT/Transaction.pm b/rt/lib/RT/Transaction.pm
index bd4d835..3344687 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($_)

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

Summary of changes:
 rt/lib/RT/Transaction.pm |   11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)




More information about the freeside-commits mailing list