Be a bit more safe displaying stock ordergroup
This commit is contained in:
parent
d06a9ed3f0
commit
36706511c0
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ class GroupOrder < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def ordergroup_name
|
def ordergroup_name
|
||||||
ordergroup ? ordergroup.name : I18n.t('model.group_order.stock_ordergroup_name', :user => updated_by.name)
|
ordergroup ? ordergroup.name : I18n.t('model.group_order.stock_ordergroup_name', :user => updated_by.try(:name) || '?')
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue