show proper error when all articles are deselected in order edit

This commit is contained in:
wvengen 2014-05-06 11:40:57 +02:00
parent 4c1e5e2b00
commit 5d9c9856d1
2 changed files with 7 additions and 0 deletions

View file

@ -48,6 +48,8 @@
%tr
%td
= check_box_tag 'checkall', "1", false, { 'data-check-all' => '#articleList' }
-# also when all are deselected, make sure this parameter is sent (controller removes empty values again)
= hidden_field_tag "order[article_ids][]", nil
%td{:colspan => "6"}= t '.select_all'
- if (@template_orders && !@template_orders.empty?)