Patch #7419

changeset.rb does not recognize time entries like @1h30m

Added by Tom Freudenberg over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:2011-01-24
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:Time tracking
Target version:-

Description

When using time loggin from repository, there will be only the hour information pushed to time logging. I think, that this happens while using non greede REGEX. I have changed the order for TIMELOG_RE in source changeset.rb


@@ -97,11 +97,11 @@ class Changeset < ActiveRecord::Base

   TIMELOG_RE = /
     (
-    (\d+([.,]\d+)?)h?
-    |
     (\d+):(\d+)
     |
     ((\d+)(h|hours?))?((\d+)(m|min)?)?
+    |
+    (\d+([.,]\d+)?)h?
     )
     /x

Related issues

Duplicates Redmine - Defect #7630: Spent time in commits not recognized Closed 2011-02-15

History

#1 Updated by Toshi MARUYAMA over 6 years ago

  • Category set to SCM

#2 Updated by Toshi MARUYAMA over 6 years ago

  • Category changed from SCM to Time tracking

#3 Updated by Toshi MARUYAMA over 6 years ago

  • Status changed from New to Closed

Duplicate with #7630.

Also available in: Atom PDF