Skip to content

Commit

Permalink
Merge pull request #4445 from moshen/fix-imagrey-save
Browse files Browse the repository at this point in the history
Fix #4443 Imagery only updated on first save
  • Loading branch information
bhousel authored Oct 16, 2017
2 parents fd4ca23 + c81cf70 commit 29a99b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/ui/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
};
Expand All @@ -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]);
Expand Down

0 comments on commit 29a99b4

Please sign in to comment.