]> git.openstreetmap.org Git - rails.git/commitdiff
now you will actually save the changeset on updating ways. Showing the changeset...
authorShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 13 Oct 2008 17:05:52 +0000 (17:05 +0000)
committerShaun McDonald <shaun@shaunmcdonald.me.uk>
Mon, 13 Oct 2008 17:05:52 +0000 (17:05 +0000)
app/models/way.rb
app/views/browse/_common_details.rhtml

index 341bc6e3ece589f3495e5d2e41a99626d12dba71..f26d7658b14589eb0b81187c2cb42882db37b9a2 100644 (file)
@@ -212,7 +212,7 @@ class Way < ActiveRecord::Base
     if !new_way.preconditions_ok?
       raise OSM::APIPreconditionFailedError.new
     end
-    self.changeset_id = changeset_id
+    self.changeset_id = new_way.changeset_id
     self.tags = new_way.tags
     self.nds = new_way.nds
     self.visible = true
index d7b340e9d7703d4b88ad9695c6c9732103ace7d4..968594bb6d7269971c8dece2441538e8705ea8c7 100644 (file)
   </tr>
 <% end %>
 
+<tr>
+  <th>In changeset:</th>
+  <td><%= common_details.changeset_id %></td>
+</tr
+
 <% unless common_details.tags_as_hash.empty? %>
   <tr valign="top">
     <th>Tags:</th>