From ee2adf21211bc20e856a7b4a5d5e8b721ee9bcc3 Mon Sep 17 00:00:00 2001 From: saurabhbhatia Date: Wed, 9 Oct 2013 09:19:05 +0000 Subject: [PATCH] Updated Locations controller with id in json api --- .../panel/location/back_end/locations_controller.rb | 3 ++- 1 file changed, 2 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 2289ba3b7..23b2d99b6 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 @@ -83,7 +83,8 @@ class Panel::Location::BackEnd::LocationsController < OrbitBackendController picurl = location.file.blank? ? '' : "http://#{request.host_with_port + location.file.url}" thumburl = location.file.blank? ? '' : "http://#{request.host_with_port + location.file.thumb.url}" - @data << { name: location.name, + @data << { id: location.id.to_s, + name: location.name, pic_url: picurl, thumb_url: thumburl, longitude: location.longitude,