Commit 37bf2be2 authored by Markus Kalkbrenner's avatar Markus Kalkbrenner Committed by Markus Kalkbrenner
Browse files

Issue #3109806 by id.conky, mkalkbrenner: Suggestions Spellcheck views area plugin always hidden

parent 508b2ded
Loading
Loading
Loading
Loading
+1 −1
Changes for src/Plugin/views/area/DidYouMeanSpellCheck.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -90,7 +90,7 @@ class DidYouMeanSpellCheck extends AreaPluginBase {
   *   In any case we need a valid Drupal render array to return.
   */
  public function render($empty = FALSE) {
    if ($this->options['search_api_spellcheck_hide_on_result'] == FALSE || ($this->options['search_api_spellcheck_hide_on_result'] && $empty)) {
    if (!$this->options['search_api_spellcheck_hide_on_result'] || $empty) {
      /** @var ResultSetInterface $result */
      $result = $this->query->getSearchApiResults();
      if ($spellcheck = $result->getExtraData('search_api_spellcheck')) {
+1 −1
Changes for src/Plugin/views/area/SuggestionsSpellCheck.php: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -45,7 +45,7 @@ class SuggestionsSpellCheck extends DidYouMeanSpellCheck {
   *   In any case we need a valid Drupal render array to return.
   */
  public function render($empty = FALSE) {
    if ($this->options['search_api_spellcheck_hide_on_result'] === FALSE || ($this->options['search_api_spellcheck_hide_on_result'] && $empty)) {
    if (!$this->options['search_api_spellcheck_hide_on_result'] || $empty) {
      /** @var ResultSetInterface $result */
      $result = $this->query->getSearchApiResults();
      if ($spellcheck = $result->getExtraData('search_api_spellcheck')) {