Make adding relations work again. Fix from RichardF.
authorTom Hughes <tom@compton.nu>
Mon, 13 Oct 2008 12:46:00 +0000 (12:46 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 13 Oct 2008 12:46:00 +0000 (12:46 +0000)
app/controllers/amf_controller.rb

index 306b3dec84dd5be3ead36befaef87019ca18b8be..ef2e1c78af30bef54081de56d7dda0ff1f20e3bc 100644 (file)
@@ -293,9 +293,9 @@ class AmfController < ApplicationController
          if mid < 0
                mid = renumberednodes[mid] if m[0] == 'node'
                mid = renumberedways[mid] if m[0] == 'way'
-               if mid
-                 typedmembers << [m[0], mid, m[2]]
-               end
+         end
+      if mid
+           typedmembers << [m[0], mid, m[2]]
          end
        end