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
parent
a3188cf357
commit
9bcf8690c0
|
@ -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;
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue