[Rt-commit] r6198 - rt/branches/3.6-RELEASE/lib/RT/Interface

ruz at bestpractical.com ruz at bestpractical.com
Thu Oct 12 17:54:24 EDT 2006


Author: ruz
Date: Thu Oct 12 17:54:23 2006
New Revision: 6198

Modified:
   rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm

Log:
* skip -Category part as -Magic [rt3.fsck.com #7903]
* drop $cfid as it's not used


Modified: rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm
==============================================================================
--- rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm	(original)
+++ rt/branches/3.6-RELEASE/lib/RT/Interface/Web.pm	Thu Oct 12 17:54:23 2006
@@ -372,13 +372,12 @@
         MIMEObj         => $MIMEObj
     );
     foreach my $arg (keys %ARGS) {
-            my $cfid = $1;
+        next if $arg =~ /-(?:Magic|Category)$/;
 
-            next if ($arg =~ /-Magic$/);
-       #Object-RT::Ticket--CustomField-3-Values
         if ($arg =~ /^Object-RT::Transaction--CustomField-/) {
             $create_args{$arg} = $ARGS{$arg};
         }
+        # Object-RT::Ticket--CustomField-3-Values
         elsif ($arg =~ /^Object-RT::Ticket--CustomField-(\d+)(.*?)$/) {
             my $cfid = $1;
             my $cf = RT::CustomField->new( $session{'CurrentUser'});


More information about the Rt-commit mailing list