mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Moved issue.status.is_closed? check back into issue save hook
This commit is contained in:
1 parent
748d431d35
commit
0d514790fd
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -43,7 +43,7 @@ module IssuePatch
|
||||
def bill_time
|
||||
|
||||
# Check to see if we have everything we need to bill the customer
|
||||
return unless status.is_closed?
|
||||
#return unless status.is_closed?
|
||||
return if assigned_to.nil?
|
||||
return unless Qbo.first
|
||||
return unless customer
|
||||
|
||||
@@ -13,7 +13,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
||||
# Called After Issue Saved
|
||||
def controller_issues_edit_after_save(context={})
|
||||
issue = context[:issue]
|
||||
issue.bill_time
|
||||
issue.bill_time if issue.status.is_closed?
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user