mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 09:10:43 -04:00
Update qbo_customer.rb
This commit is contained in:
1 parent
198e2d5934
commit
bfec64de54
1 file changed
+7
-3
@@ -103,9 +103,13 @@ class QboCustomer < ActiveRecord::Base
|
|||||||
|
|
||||||
# update's the customers name if updated
|
# update's the customers name if updated
|
||||||
def update
|
def update
|
||||||
if @details and 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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user