mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-12-23 11:32:51 +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 |
||
---|---|---|
.. | ||
ce | ||
dm | ||
init | ||
preinit | ||
tests | ||
themes | ||
ui |