Magento 2 Something went wrong with processing the default view and  … error (fixed)

Problem: Something went wrong with processing the default view and we have restored the filter to its original state.

Fixed:

File open: vendormagentoframeworkViewElementUiComponentDataProviderFulltextFilter.php

Function change:

public function apply(Collection $collection, Filter $filter)
{
   if (!$collection instanceof AbstractDb) {
       throw new InvalidArgumentException('Database collection required.');
   }

   /** @var SearchResult $collection */
   $mainTable = $collection->getMainTable();
   $columns = $this->getFulltextIndexColumns($collection, $mainTable);
   if (!$columns) {
       return;
   }

   $columns = $this->addTableAliasToColumns($columns, $collection, $mainTable);
   $collection->getSelect()
       ->where(
           'MATCH(' . implode(',', $columns) . ') AGAINST(?)',
         //  $filter->getValue()
           $this->escapeAgainstValue($filter->getValue())
       );
}
Scroll to Top