From c81cf703f20bfd7d772dab69a3de725572f81436 Mon Sep 17 00:00:00 2001 From: Colin Kennedy Date: Sun, 15 Oct 2017 15:45:53 -0400 Subject: [PATCH] Fix #4443 Imagery only updated on first save --- modules/ui/commit.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/ui/commit.js b/modules/ui/commit.js index 435ea61b4..62ca53989 100644 --- a/modules/ui/commit.js +++ b/modules/ui/commit.js @@ -65,7 +65,6 @@ export function uiCommit(context) { tags = { comment: context.storage('comment') || '', created_by: ('iD ' + context.version).substr(0, 255), - imagery_used: context.history().imageryUsed().join(';').substr(0, 255), host: detected.host.substr(0, 255), locale: detected.locale.substr(0, 255) }; @@ -83,6 +82,8 @@ export function uiCommit(context) { } tags = _clone(changeset.tags); + tags.imagery_used = context.history().imageryUsed().join(';').substr(0, 255); + changeset = changeset.update({ tags: tags }); var header = selection.selectAll('.header') .data([0]);