Parse the parameters to no-results-found event as an object

This fixes a bug in
I2ff9ce9b40df16ed3c5e6970fb3b691af08cedec

Bug: T179402
Change-Id: I770211c666ad530f6a4bb618c6f2c3521aa05a8e
This commit is contained in:
Amire80
2018-03-15 11:07:59 +02:00
committed by jenkins-bot
parent a22a7f0678
commit 75bf99124a

View File

@@ -238,14 +238,13 @@
* Log search strings which produce no search results. * Log search strings which produce no search results.
* *
* @param {jQuery.event} event The original event * @param {jQuery.event} event The original event
* @param {string} context The query string * @param {Object} data Information about the failed search
* @param {string} ulsPurpose The ulsPurpose option of the ULS panel that triggered the event
*/ */
noSearchResults: function ( event, context, ulsPurpose ) { noSearchResults: function ( event, data ) {
this.log( { this.log( {
action: 'no-search-results', action: 'no-search-results',
context: context, context: data.query,
ulsPurpose: ulsPurpose, ulsPurpose: data.ulsPurpose,
title: mw.config.get( 'wgPageName' ) title: mw.config.get( 'wgPageName' )
} ); } );
} }