Updated Locations controller with id in json api
This commit is contained in:
		
							parent
							
								
									363ea53861
								
							
						
					
					
						commit
						ee2adf2121
					
				|  | @ -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, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue