mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Update issues_save_hook_listener.rb
This commit is contained in:
1 parent
bc38361348
commit
1b533d6dd8
1 file changed
+1
-1
@@ -88,7 +88,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
|||||||
|
|
||||||
# Convert float spent time to hours and minutes
|
# Convert float spent time to hours and minutes
|
||||||
hours = val.to_i
|
hours = val.to_i
|
||||||
minutesDecimal = (( spent_hours - hours) * 60)
|
minutesDecimal = (( val - hours) * 60)
|
||||||
minutes = minutesDecimal.to_i
|
minutes = minutesDecimal.to_i
|
||||||
|
|
||||||
item = item_service.query("SELECT * FROM Item WHERE Name = '#{key}' ").first
|
item = item_service.query("SELECT * FROM Item WHERE Name = '#{key}' ").first
|
||||||
|
|||||||
Reference in new issue
Block a user