diff options
| author | Zakaria BOUZIANE | 2014-11-24 09:34:58 +0100 |
|---|---|---|
| committer | Zakaria BOUZIANE | 2014-11-24 09:34:58 +0100 |
| commit | 4db22a974de47194687560e122372dad4c88a9a5 (patch) | |
| tree | 83976690182d456594d5da3730654e297254ae95 | |
| parent | 05e441cf7841a61e40a01a783d1b4f2fb0cd1a68 (diff) | |
| download | chouette-core-4db22a974de47194687560e122372dad4c88a9a5.tar.bz2 | |
HUB Export only if less than 50000 VehicleJourneyAtStops and start_date and end_date are provided.Fix a minor typo
| -rw-r--r-- | app/controllers/exports_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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| |
