aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/stop_areas_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/stop_areas_controller.rb b/app/controllers/stop_areas_controller.rb
index e0d5a161c..8fc9191a1 100644
--- a/app/controllers/stop_areas_controller.rb
+++ b/app/controllers/stop_areas_controller.rb
@@ -32,7 +32,7 @@ class StopAreasController < ChouetteController
def show
@map = StopAreaMap.new referential, stop_area
show! do |format|
- unless stop_area.geometry
+ unless stop_area.position or params[:default]
format.kml {
render :nothing => true, :status => :not_found
}
@@ -42,7 +42,7 @@ class StopAreasController < ChouetteController
end
def edit
- #stop_area.position ||= stop_area.default_position
+ stop_area.position ||= stop_area.default_position
@map = StopAreaMap.new referential, stop_area
@map.editable = true