Update issues_save_hook_listener.rb

This commit is contained in:
2016-08-10 00:08:13 -04:00
committed by GitHub
parent 7cc84277c6
commit 328a50be47

View File

@@ -85,7 +85,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
end end
h.each do |key, val| h.each do |key, val|
item = Qbo.get_base(:item).service.query("SELECT Id FROM Item WHERE Name = '#{key}' ").first.id item_id = Qbo.get_base(:item).service.query("SELECT Id FROM Item WHERE Name = '#{key}' ").first.id
# Convert float spent time to hours and minutes # Convert float spent time to hours and minutes
hours = val.to_i hours = val.to_i