Update issues_save_hook_listener.rb

This commit is contained in:
ricky authored and GitHub committed 2016-08-09 23:47:58 -04:00
1 parent 33b5ac8c87
commit fbac6b6d77
1 file changed
+1 -1
+1 -1
View File
@@ -86,7 +86,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
end end
h.each do |key, val| h.each do |key, val|
item_id = Qbo.get_base(:item).service.query("SELECT Id FROM Item WHERE Name = '#{key}' ") item = 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