[Bps-public-commit] r14698 - RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter

falcone at bestpractical.com falcone at bestpractical.com
Thu Jul 31 16:36:03 EDT 2008


Author: falcone
Date: Thu Jul 31 16:36:02 2008
New Revision: 14698

Modified:
   RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm

Log:
* 3.8 is stricter about Statuses being lowercased, so users who used
  to say "Status: Stalled" in mail fail creation and updates.  
  Be helpful and fix it for them

Modified: RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm
==============================================================================
--- RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm	(original)
+++ RT-Extension-CommandByEmail/lib/RT/Interface/Email/Filter/TakeAction.pm	Thu Jul 31 16:36:02 2008
@@ -408,7 +408,7 @@
 
             _SetAttribute(
                 $ticket_as_user,        $attribute,
-                $cmds{ lc $attribute }, \%results
+                lc $cmds{ lc $attribute }, \%results
             );
         }
 
@@ -439,6 +439,10 @@
                 $RT::Logger->debug("Time taken on create: $time_taken");
             }
 
+            if ( $attribute eq 'Status' && $cmds{ lc $attribute } ) {
+                $cmds{ lc $attribute } = lc $cmds{ lc $attribute };
+            }
+
             $create_args{$attribute} = $cmds{ lc $attribute };
         }
         foreach my $attribute (@DATE_ATTRIBUTES) {



More information about the Bps-public-commit mailing list