From 3d091b692d32b0604e7363834d12f7b6ca55785b Mon Sep 17 00:00:00 2001 From: Harry Bomrah Date: Tue, 12 Nov 2013 17:30:48 +0800 Subject: [PATCH] category blank fix --- .../controllers/panel/location/back_end/locations_controller.rb | 2 ++ .../app/views/panel/location/back_end/locations/_form.html.erb | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vendor/built_in_modules/location/app/controllers/panel/location/back_end/locations_controller.rb b/vendor/built_in_modules/location/app/controllers/panel/location/back_end/locations_controller.rb index c1a2bab26..b5d1c064e 100644 --- a/vendor/built_in_modules/location/app/controllers/panel/location/back_end/locations_controller.rb +++ b/vendor/built_in_modules/location/app/controllers/panel/location/back_end/locations_controller.rb @@ -22,6 +22,8 @@ class Panel::Location::BackEnd::LocationsController < OrbitBackendController def edit @location_info = LocationInfo.find(params[:id]) + @categories = get_categories_for_index + end def show diff --git a/vendor/built_in_modules/location/app/views/panel/location/back_end/locations/_form.html.erb b/vendor/built_in_modules/location/app/views/panel/location/back_end/locations/_form.html.erb index e3d4e53ec..41a6560cc 100644 --- a/vendor/built_in_modules/location/app/views/panel/location/back_end/locations/_form.html.erb +++ b/vendor/built_in_modules/location/app/views/panel/location/back_end/locations/_form.html.erb @@ -19,8 +19,8 @@
+ <%= f.text_field :latitude, :class=>"span2", :placeholder => "Latitude" %> <%= f.text_field :longitude, :class=>"span2", :placeholder => "Longitude" %> - <%= f.text_field :latitude, :class=>"span2", :placeholder => "Langitude" %>