A hidden input 'profile' gets added within the search form widget no
matter what profile is loaded at the moment. This is done in
shortDialogHtml along with a few other hidden fields. The same hidden
field is added a second time in optionsHtml if the profile 'advanced' is
run. Remove this redundance.
Bug: T158869
Change-Id: I3be598702dbe9fa2cfe0fdd6c23fe6d88477626d
*/
protected function optionsHtml( $term, $isPowerSearch, $profile ) {
$html = '';
- $opts = [
- 'profile' => $profile,
- ];
if ( $isPowerSearch ) {
- $html .= $this->powerSearchBox( $term, $opts );
+ $html .= $this->powerSearchBox( $term, [] );
} else {
$form = '';
Hooks::run( 'SpecialSearchProfileForm', [
- $this->specialSearch, &$form, $profile, $term, $opts
+ $this->specialSearch, &$form, $profile, $term, []
] );
$html .= $form;
}