]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/changeset_controller.rb
Merge branch 'master' of git://git.openstreetmap.org/rails into openstreetbugs2
[rails.git] / app / controllers / changeset_controller.rb
index 29b9c787bc447706ef04a26fe4501b58ac947bee..5a4dc36fb62a137d95a2dc1db2a858e61c22c990 100644 (file)
@@ -436,7 +436,7 @@ private
   # query changesets which are closed
   # ('closed at' time has passed or changes limit is hit)
   def conditions_closed(closed)
-    return closed.nil? ? nil : ['closed_at < ? or num_changes > ?', 
+    return closed.nil? ? nil : ['(closed_at < ? or num_changes > ?)', 
                                 Time.now.getutc, Changeset::MAX_ELEMENTS]
   end