[Rt-commit] rt branch, 4.4/validate-time-input, repushed

? sunnavy sunnavy at bestpractical.com
Wed Oct 10 08:27:13 EDT 2018


The branch 4.4/validate-time-input was deleted and repushed:
       was 8a353d38d20abe35e5e4f09173122de44e4a87d0
       now 820df69baa211e0733e3865a579dedf6f6d31037

1: 99ab4c441 ! 1: 86055935f Normalize and validate time inputs
    @@ -38,6 +38,10 @@
              if ( $ARGS->{$field} && $ARGS->{$field} =~ /hours/i ) {
                  $ARGS->{$local} *= 60;
              }
    ++
    ++        # keep decimal part as the column in db is int
    ++        $ARGS->{$local} = sprintf( '%.0f', $ARGS->{$local} );
    ++
              delete $ARGS->{$field};
          }
      
2: 8a353d38d ! 2: 820df69ba Test time values on ticket create/update/modify pages
    @@ -22,6 +22,7 @@
     +    '-8'    => -8,
     +    '2'     => 2,
     +    '5.'    => 5,
    ++    '5.5'   => 6,
     +    ' 15 '  => 15,
     +    '1,000' => 1000,
     +    '.5h'   => 30,



More information about the rt-commit mailing list