Update issues_save_hook_listener.rb

This commit is contained in:
2016-08-10 00:22:16 -04:00
committed by GitHub
parent bc38361348
commit 1b533d6dd8

View File

@@ -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