Commit 19509b56 authored by Steven Jones's avatar Steven Jones Committed by Thomas Seidl
Browse files

Issue #3243313 by Steven Jones, drunken monkey: Removed the...

Issue #3243313 by Steven Jones, drunken monkey: Removed the "search_api_base_path" query option for views.
parent a0af7dc3
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
Search API 1.x, dev (xxxx-xx-xx):
---------------------------------
- #3243313 by Steven Jones, drunken monkey: Removed the "search_api_base_path"
  query option for views.
- #3179643 by drunken monkey: Fixed Views field extraction bevahior when fields
  returned from server don't have values.
- #3253986 by drunken monkey, gaddman: Fixed empty "ignore characters" setting
+0 −7
Original line number Diff line number Diff line
@@ -12,7 +12,6 @@ use Drupal\Core\Entity\Plugin\DataType\EntityAdapter;
use Drupal\Core\Extension\ModuleHandlerInterface;
use Drupal\Core\Form\FormStateInterface;
use Drupal\Core\Messenger\MessengerInterface;
use Drupal\Core\Url;
use Drupal\search_api\Entity\Index;
use Drupal\search_api\LoggerTrait;
use Drupal\search_api\ParseMode\ParseModeInterface;
@@ -542,12 +541,6 @@ class SearchApiQuery extends QueryPluginBase {
      $this->query->setOption('search_api_bypass_access', TRUE);
    }

    // If the View and the Panel conspire to provide an overridden path then
    // pass that through as the base path.
    if (($path = $this->view->getPath()) && strpos(Url::fromRoute('<current>')->toString(), $path) !== 0) {
      $this->query->setOption('search_api_base_path', $path);
    }

    // Add the query tags.
    if (!empty($this->options['query_tags'])) {
      foreach ($this->options['query_tags'] as $tag) {