From 4db22a974de47194687560e122372dad4c88a9a5 Mon Sep 17 00:00:00 2001 From: Zakaria BOUZIANE Date: Mon, 24 Nov 2014 09:34:58 +0100 Subject: HUB Export only if less than 50000 VehicleJourneyAtStops and start_date and end_date are provided.Fix a minor typo --- app/controllers/exports_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/exports_controller.rb b/app/controllers/exports_controller.rb index 6ce5295e1..e8c140dd7 100644 --- a/app/controllers/exports_controller.rb +++ b/app/controllers/exports_controller.rb @@ -18,7 +18,7 @@ class ExportsController < ChouetteController flash[:notice] = I18n.t("formtastic.titles.export.vjas.size", size: Chouette::VehicleJourneyAtStop.all.count) redirect_to new_referential_export_path(@referential) elsif (params[:export][:type] == "HubExport") && (params[:export][:start_date].empty? || params[:export][:end_date].empty?) - flash[:notice] = I18n.t("formtastic.titles.export.dates.not_nul", size: Chouette::VehicleJourneyAtStop.all.count) + flash[:notice] = I18n.t("formtastic.titles.export.dates.not_nul") redirect_to new_referential_export_path(@referential) else create! do |success, failure| -- cgit v1.2.3