mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update qbo_invoice.rb
This commit is contained in:
@@ -58,7 +58,7 @@ class QboInvoice < ActiveRecord::Base
|
|||||||
i = Issue.find_by_id(issue.to_i)
|
i = Issue.find_by_id(issue.to_i)
|
||||||
begin
|
begin
|
||||||
i.qbo_invoices << QboInvoice.find_by_id(invoice.id.to_i)
|
i.qbo_invoices << QboInvoice.find_by_id(invoice.id.to_i)
|
||||||
i.qbo_invoices.save!
|
i.save!
|
||||||
rescue
|
rescue
|
||||||
# do nothing, the reccord exists
|
# do nothing, the reccord exists
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user