jenkins-bot has submitted this change and it was merged.
Change subject: Use correct API parameter to avoid search JS exceptions
......................................................................
Use correct API parameter to avoid search JS exceptions
API parameter seems to have changed.
Make sure it points to correct id not undefined
T78216
Change-Id: I42a2c389c6215ba7292f6f479663eae2a568e0ef
(cherry picked from commit 5dcff6a53a59fbf46b48d45d4d9535dd7c3cc5f7)
---
M javascripts/modules/search/SearchApi.js
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
MaxSem: Looks good to me, approved
jenkins-bot: Verified
diff --git a/javascripts/modules/search/SearchApi.js
b/javascripts/modules/search/SearchApi.js
index 8a54195..3049f26 100644
--- a/javascripts/modules/search/SearchApi.js
+++ b/javascripts/modules/search/SearchApi.js
@@ -98,7 +98,7 @@
if ( info &&
$.inArray( id, pageIds ) === -1 ) {
pageIds.push ( id );
results.push( {
-
id: info.id,
+
id: info.pageid,
heading: highlightSearchTerm( info.title, query ),
title: info.title,
url: mw.util.getUrl( info.title ),
--
To view, visit https://gerrit.wikimedia.org/r/179335
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I42a2c389c6215ba7292f6f479663eae2a568e0ef
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: wmf/1.25wmf12
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits