mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 19:43:19 +00:00
efd2cc0d03
In the new-page case, wgRevisionId will be 0 so it'll try looking for parentRevId and the cast-to-int on an undefined will get us NaN. That fails validation, so we should give one last fallback to 0. It's _possible_ that we could instead make this an explicit check for using wgRevisionId if it's anything not-undefined, but I'm not certain about whether there are cases that wouldn't cover. Bug: T237063 Change-Id: I8a38c0f3b8f8b2b596f5d0933e1a9e7f1326d7be |
||
---|---|---|
.. | ||
apiresponsecache | ||
styles | ||
targets | ||
ve.init.mw.ArticleTargetEvents.js | ||
ve.init.mw.js | ||
ve.init.mw.Platform.init.js | ||
ve.init.mw.Platform.js | ||
ve.init.mw.SaveErrorHandler.js | ||
ve.init.mw.trackSubscriber.js | ||
ve.init.mw.ViewportZoomHandler.js |