From a0c4ecce1153e6c2450757fb82f5d8eb6f6272da Mon Sep 17 00:00:00 2001 From: echarp Date: Sun, 16 Jun 2019 17:56:24 +0200 Subject: [PATCH] Region filter links do not repeat start_date --- app/views/regions/_filter_region.haml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/views/regions/_filter_region.haml b/app/views/regions/_filter_region.haml index 9cd20c13..54e67b4a 100644 --- a/app/views/regions/_filter_region.haml +++ b/app/views/regions/_filter_region.haml @@ -7,8 +7,7 @@ %small %em.fa.fa-external-link-alt - else - = link_to start_date: params[:start_date], year: params[:year], - region: params[:region] == filter_region.id.to_s ? '' : filter_region do + = link_to region: params[:region] == filter_region.id.to_s ? '' : filter_region do - if filter_region.code.present? = flag_icon filter_region.code.downcase = t filter_region.code, scope: :countries, default: filter_region.name