diff options
| author | jpl | 2017-06-01 14:53:14 +0200 |
|---|---|---|
| committer | jpl | 2017-06-01 14:53:21 +0200 |
| commit | 2c2988b6ba0cf36254fdec4696da14f7103fa503 (patch) | |
| tree | e1f86903da897ce64c94c39fd6b8781850d880bc /app/controllers | |
| parent | a0db62865669cd2573797a25e3ce3fca4e1ef3e0 (diff) | |
| download | chouette-core-2c2988b6ba0cf36254fdec4696da14f7103fa503.tar.bz2 | |
Refs #3638: revert changes, func. mistake
Diffstat (limited to 'app/controllers')
| -rw-r--r-- | app/controllers/vehicle_journeys_controller.rb | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb index 53008c7ce..fe2e2137f 100644 --- a/app/controllers/vehicle_journeys_controller.rb +++ b/app/controllers/vehicle_journeys_controller.rb @@ -117,14 +117,18 @@ class VehicleJourneysController < ChouetteController end def maybe_filter_out_journeys_with_time_tables(scope) - if params[:q] - if params[:q][:vehicle_journey_without_time_table] == 'false' - return scope.without_time_tables - end - else + if params[:q] && params[:q][:vehicle_journey_without_time_table] == 'false' return scope.without_time_tables end + # if params[:q] + # if params[:q][:vehicle_journey_without_time_table] == 'true' + # return scope.without_time_tables + # end + # else + # return scope.without_time_tables + # end + scope end |
