Fixed bug in with new shared multiple suppliers feature.
This commit is contained in:
parent
25fbb47320
commit
f4a0e29297
3 changed files with 10 additions and 4 deletions
|
|
@ -22,9 +22,9 @@
|
|||
%td= shared_supplier.note
|
||||
%td= shared_supplier.delivery_days
|
||||
%td
|
||||
- if shared_supplier.suppliers
|
||||
- if shared_supplier.suppliers.any?
|
||||
%i.icon-ok
|
||||
= '(' + shared_supplier.suppliers.map{|s| s.name}.join(', ') + ')'
|
||||
= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
|
||||
= associated_supplier_names(shared_supplier)
|
||||
= link_to "erneut abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
|
||||
- else
|
||||
= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue