mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update customer.rb
This commit is contained in:
@@ -114,14 +114,16 @@ class Customer < ActiveRecord::Base
|
|||||||
|
|
||||||
# update's the customers name if updated
|
# update's the customers name if updated
|
||||||
def update
|
def update
|
||||||
begin
|
Thread.new {
|
||||||
if not self.name == @detils.display_name
|
begin
|
||||||
self.name = @details.display_name
|
if not self.name == @detils.display_name
|
||||||
self.save
|
self.name = @details.display_name
|
||||||
|
self.save
|
||||||
|
end
|
||||||
|
rescue
|
||||||
|
return nil
|
||||||
end
|
end
|
||||||
rescue
|
}
|
||||||
return nil
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user