From 9bcf8690c063bd572afff9d70d9fc0d64a0318db Mon Sep 17 00:00:00 2001 From: Luiza Pagliari Date: Tue, 15 Mar 2016 15:44:00 -0300 Subject: [PATCH] Update author when removing line attribute from line This avoids raising error 'Trying to submit changes as another author in changeset' when 2 authors change line attributes of the same line. This fixes issue #2925. --- src/static/js/AttributeManager.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/static/js/AttributeManager.js b/src/static/js/AttributeManager.js index d4d20a1f..e3749510 100644 --- a/src/static/js/AttributeManager.js +++ b/src/static/js/AttributeManager.js @@ -278,6 +278,9 @@ AttributeManager.prototype = _(AttributeManager.prototype).extend({ if (attrib[0] === attributeName && (!attributeValue || attrib[0] === attributeValue)){ found = true; return [attributeName, '']; + }else if (attrib[0] === 'author'){ + // update last author to make changes to line attributes on this line + return [attributeName, this.author]; } return attrib; });