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 341bc6e..f26d765 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 d7b340e..968594b 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>