]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Merge remote-tracking branch 'openstreetmap/pull/1045'
[rails.git] / app / controllers / changeset_controller.rb
index 31004e8ee38659ce67a478b9161c0bacd6ecc770..5b55980e3e93f0ff41f070a339b5fc38036bd1cd 100644 (file)
@@ -294,7 +294,7 @@ class ChangesetController < ApplicationController
         changesets = changesets.where("changesets.id <= ?", params[:max_id])
       end
 
-      @edits = changesets.order("changesets.id DESC").limit(20).preload(:user, :changeset_tags)
+      @edits = changesets.order("changesets.id DESC").limit(20).preload(:user, :changeset_tags, :comments)
 
       render :action => :list, :layout => false
     end
@@ -456,7 +456,7 @@ class ChangesetController < ApplicationController
   # restrict changesets to those enclosed by a bounding box
   # we need to return both the changesets and the bounding box
   def conditions_bbox(changesets, bbox)
-    if  bbox
+    if bbox
       bbox.check_boundaries
       bbox = bbox.to_scaled
       return changesets.where("min_lon < ? and max_lon > ? and min_lat < ? and max_lat > ?",