[Rt-commit] r3365 - in rt/branches/3.5-TESTING: . html

jesse at bestpractical.com jesse at bestpractical.com
Sun Jul 3 18:58:49 EDT 2005


Author: jesse
Date: Sun Jul  3 18:58:49 2005
New Revision: 3365

Modified:
   rt/branches/3.5-TESTING/   (props changed)
   rt/branches/3.5-TESTING/html/autohandler
Log:
 r22219 at hualien:  jesse | 2005-07-03 18:24:14 -0400
  r22143 at hualien:  jesse | 2005-07-03 17:49:55 -0400
   r22037 at hualien:  jesse | 2005-07-01 19:25:05 -0400
    r22031 at hualien (orig r3273):  alexmv | 2005-07-01 00:46:49 -0400
     r4557 at zoq-fot-pik:  chmrr | 2005-06-30 20:44:33 -0400
      * Fractional units
    
   
  
 


Modified: rt/branches/3.5-TESTING/html/autohandler
==============================================================================
--- rt/branches/3.5-TESTING/html/autohandler	(original)
+++ rt/branches/3.5-TESTING/html/autohandler	Sun Jul  3 18:58:49 2005
@@ -74,6 +74,9 @@
 foreach my $field (@TimeUnitFields) { 
     next unless ($field =~ /^(.*?)-TimeUnits$/i);
     my $local = $1;
+    $ARGS{$local} =~ s|\b (\d* \s+) (\d+)/(\d+) \b
+                      |$1 + ($3 == 0 ? 0 : ($2 / $3))
+                      |xe;
     if ($ARGS{$field} =~ /hours/i) {
         $ARGS{$local} *= 60;
     }


More information about the Rt-commit mailing list