mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
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.
This commit is contained in:
parent
a3188cf357
commit
9bcf8690c0
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue