From 9e1946b2837abe146777773177f4c48ffde8c06f Mon Sep 17 00:00:00 2001 From: Shaun McDonald Date: Mon, 13 Oct 2008 17:05:52 +0000 Subject: [PATCH] now you will actually save the changeset on updating ways. Showing the changeset in the data browser detail. --- app/models/way.rb | 2 +- app/views/browse/_common_details.rhtml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app/models/way.rb b/app/models/way.rb index 341bc6e3e..f26d7658b 100644 --- a/app/models/way.rb +++ b/app/models/way.rb @@ -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 diff --git a/app/views/browse/_common_details.rhtml b/app/views/browse/_common_details.rhtml index d7b340e9d..968594bb6 100644 --- a/app/views/browse/_common_details.rhtml +++ b/app/views/browse/_common_details.rhtml @@ -10,6 +10,11 @@ <% end %> + + In changeset: + <%= common_details.changeset_id %> + Tags: -- 2.43.2