mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-11-24 00:13:36 +00:00
Use 'baserevid' instead of 'basetimestamp' for edit conflict detection
This has two benefits: * Allows detecting a conflict if two edits are saved in the same second * Doesn't ignore conflicts with yourself (T246726) Depends-On: Id7565018f66860b5c2ba688777508db1b88700ae Bug: T246726 Change-Id: I22eaa1af5692854870d31e08b171a070a2fda0de
This commit is contained in:
parent
6b91a57e15
commit
4e135c7f07
|
@ -168,7 +168,7 @@ function save( widget, parsoidData ) {
|
|||
page: pageData.pageName,
|
||||
oldid: pageData.oldId,
|
||||
summary: summary,
|
||||
basetimestamp: pageData.baseTimeStamp,
|
||||
baserevid: pageData.oldId,
|
||||
starttimestamp: pageData.startTimeStamp,
|
||||
etag: pageData.etag,
|
||||
assert: mw.user.isAnon() ? 'anon' : 'user',
|
||||
|
@ -302,7 +302,6 @@ function getParsoidCommentData( commentId ) {
|
|||
parsoidPageData = {
|
||||
pageName: pageName,
|
||||
oldId: oldId,
|
||||
baseTimeStamp: data.basetimestamp,
|
||||
startTimeStamp: data.starttimestamp,
|
||||
etag: data.etag
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue