From 8cb67a83ead126a4f7a3d3f87857a8c85db0c6b3 Mon Sep 17 00:00:00 2001 From: David Lynch Date: Mon, 31 Aug 2020 11:04:09 -0500 Subject: [PATCH] Cast fallback revision_id to a number so it validates EditAttemptStep requires an integer, and just getting the value of an input is always a string. Bug: T261664 Change-Id: I57e76857086474365124b5b016902211b0e63166 --- modules/ve-mw/init/ve.init.mw.trackSubscriber.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ve-mw/init/ve.init.mw.trackSubscriber.js b/modules/ve-mw/init/ve.init.mw.trackSubscriber.js index 453deb3c7d..fd5c8c936d 100644 --- a/modules/ve-mw/init/ve.init.mw.trackSubscriber.js +++ b/modules/ve-mw/init/ve.init.mw.trackSubscriber.js @@ -151,7 +151,7 @@ page_title: mw.config.get( 'wgPageName' ), page_ns: mw.config.get( 'wgNamespaceNumber' ), // eslint-disable-next-line no-jquery/no-global-selector - revision_id: mw.config.get( 'wgRevisionId' ) || $( 'input[name=parentRevId]' ).val(), + revision_id: mw.config.get( 'wgRevisionId' ) || +$( 'input[name=parentRevId]' ).val(), editing_session_id: editingSessionId, page_token: mw.user.getPageviewToken(), session_token: mw.user.sessionId(),