mediawiki-extensions-Visual.../modules/ve-mw/init
David Lynch efd2cc0d03 Give revision_id a fallback that'll validate
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
2020-11-30 11:17:23 -06:00
..
apiresponsecache doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
styles stylelint: Remove needless disables 2020-11-19 23:38:11 +00:00
targets Remove maxLength from new section title in NWE 2020-11-26 00:22:36 +01:00
ve.init.mw.ArticleTargetEvents.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.js build: Update eslint-config-wikimedia to 0.16.0 2020-06-02 21:30:00 +01:00
ve.init.mw.Platform.init.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.Platform.js Update VE core submodule to master (68c5f1a3c) 2020-10-08 19:09:12 +01:00
ve.init.mw.SaveErrorHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00
ve.init.mw.trackSubscriber.js Give revision_id a fallback that'll validate 2020-11-30 11:17:23 -06:00
ve.init.mw.ViewportZoomHandler.js doc: Bump copyright year for 2020 2020-01-08 09:13:24 -08:00