mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Fixed Issue Save Hook
This commit is contained in:
1 parent
0ed61b191f
commit
a7b7db690d
1 file changed
+1
-1
@@ -18,7 +18,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
||||
if Qbo.first && issue.qbo_customer && issue.qbo_item
|
||||
|
||||
# if this is a quote, lets create a new estimate based off estimated hours
|
||||
if issue.tracker.name = "Quote" && issue.status.is_new? && !issue.qbo_estimate
|
||||
if issue.tracker.name = "Quote" && issue.status.name = "New" && !issue.qbo_estimate_id
|
||||
|
||||
# Get QBO Services
|
||||
item_service = QboItem.get_base.service
|
||||
|
||||
Reference in new issue
Block a user