aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
authorjpl2017-03-10 11:17:30 +0100
committerjpl2017-03-10 11:17:41 +0100
commit35f49c9df1c615edc7cd8fca10c225972ffbe81d (patch)
treecc00ee2f4eb427191696324fb77070e057b94693 /app/controllers
parent65c1596756a0db402bd4ab793939ab833e454e5d (diff)
downloadchouette-core-35f49c9df1c615edc7cd8fca10c225972ffbe81d.tar.bz2
Refs #2499: giving food to window
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/vehicle_journeys_controller.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/vehicle_journeys_controller.rb b/app/controllers/vehicle_journeys_controller.rb
index 8845b0c54..5199d8632 100644
--- a/app/controllers/vehicle_journeys_controller.rb
+++ b/app/controllers/vehicle_journeys_controller.rb
@@ -61,6 +61,9 @@ class VehicleJourneysController < ChouetteController
}
end
+ @jp_origin = Chouette::JourneyPattern.find_by(objectid: params[:jp])
+
+
index! do
if collection.out_of_bounds?
redirect_to params.merge(:page => 1)