Fix Messages#new for stock orders after 7fcfd75

This commit is contained in:
Patrick Gansterer 2019-11-16 11:49:46 +01:00
parent f84e111b79
commit d3dc70f87b

View file

@ -105,7 +105,7 @@
= f.input :messagegroup_id, :as => :select, include_blank: false, :collection => Messagegroup.undeleted.order(:name) = f.input :messagegroup_id, :as => :select, include_blank: false, :collection => Messagegroup.undeleted.order(:name)
#order #order
= f.input :order_id, :as => :select, include_blank: false, :collection => Order.finished_not_closed.order('pickup DESC').includes(:supplier).limit(25), = f.input :order_id, :as => :select, include_blank: false, :collection => Order.finished_not_closed.order('pickup DESC').includes(:supplier).limit(25),
:label_method => ->(obj){ t('.order_item', supplier_name: obj.supplier.name, pickup: format_date(obj.pickup)) }, :input_html => {class: 'input-xxlarge'} :label_method => ->(obj){ t('.order_item', supplier_name: obj.name, pickup: format_date(obj.pickup)) }, :input_html => {class: 'input-xxlarge'}
#recipients #recipients
= f.input :recipient_tokens, :input_html => { 'data-pre' => User.where(id: @message.recipients_ids).map(&:token_attributes).to_json } = f.input :recipient_tokens, :input_html => { 'data-pre' => User.where(id: @message.recipients_ids).map(&:token_attributes).to_json }
= f.input :private, inline_label: t('.hint_private') = f.input :private, inline_label: t('.hint_private')