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.
pull/2926/head
Luiza Pagliari 2016-03-15 15:44:00 -03:00
parent a3188cf357
commit 9bcf8690c0
1 changed files with 3 additions and 0 deletions

View File

@ -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;
});