Merge pull request #4445 from moshen/fix-imagrey-save

Fix #4443 Imagery only updated on first save
This commit is contained in:
Bryan Housel
2017-10-16 00:38:08 -04:00
committed by GitHub
+2 -1
View File
@@ -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]);