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
10f8a7e124
commit
8429c29c30
1 file changed
+1
-1
@@ -15,7 +15,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
||||
issue = context[:issue]
|
||||
|
||||
# Check to see if we have registered with QBO
|
||||
if Qbo.first && issue.customer && issue.qbo_item
|
||||
if Qbo.first && issue.customer && issue. qbo_item_id
|
||||
|
||||
# if this is a quote, lets create a new estimate based off estimated hours
|
||||
if issue.tracker.name = "Quote" && issue.status.name = "New" && issue.qbo_estimate
|
||||
|
||||
Reference in new issue
Block a user