When form getting submitted with unchecked "Hide when the view has results." it not show any result.
That's because when options form for search_api_spellcheck_suggestions plugin was saved it store value as 0, but in ::render() method we have typo-specific condition if it FALSE:
...
if ($this->options['search_api_spellcheck_hide_on_result'] === FALSE || ($this->options['search_api_spellcheck_hide_on_result'] && $empty)) {
...
?>
Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| suggestions-spellcheck-always-hidden-1.patch | 912 bytes | id.conky |
Comments
Comment #2
id.conky commentedComment #3
star-szrSetting status to needs review.
Comment #4
mkalkbrennerYou're right. The same is true for "Did you mean?"
Comment #6
mkalkbrenner