mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update issues_save_hook_listener.rb
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user