From 4c41a99fdee9db558f30a61a1bd031255c9846fb Mon Sep 17 00:00:00 2001 From: Patrick Gansterer Date: Sat, 9 Dec 2017 18:38:36 +0100 Subject: [PATCH] Fix pickup view for orders without pickup data (#537) --- app/views/pickups/index.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/pickups/index.html.haml b/app/views/pickups/index.html.haml index 1464a08a..4d3caa64 100644 --- a/app/views/pickups/index.html.haml +++ b/app/views/pickups/index.html.haml @@ -2,9 +2,9 @@ - @orders.each do |pickup, orders| = form_tag document_pickups_path do - = hidden_field_tag 'date', l(pickup, format: :long) %h2 - if pickup + = hidden_field_tag 'date', l(pickup, format: :long) = l pickup, format: :long - else = t '.without_pickup'