MaxSem 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: Verified; Looks good to me, approved
diff --git a/javascripts/modules/search/SearchApi.js
b/javascripts/modules/search/SearchApi.js
index 348a99c..34b2a62 100644
--- a/javascripts/modules/search/SearchApi.js
+++ b/javascripts/modules/search/SearchApi.js
@@ -97,7 +97,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/179334
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.25wmf11
Gerrit-Owner: Kaldari <[email protected]>
Gerrit-Reviewer: Awjrichards <[email protected]>
Gerrit-Reviewer: Jdlrobson <[email protected]>
Gerrit-Reviewer: MaxSem <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits