-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔃 [EngCom] Public Pull Requests - 2.2-develop
Accepted Public Pull Requests: - #14876: Changed return type of addToCartPostParams to array (by @LordZardeck) - #14822: Add default schedule config for sitemap_generate job (by @jameshalsall) - #12735: #12193 Catalog not filtered by admin search bar (by @hannassy) - #14892: Corrected @param in comment block (by @yogeshks) Fixed GitHub Issues: - #5768: Magento 2.0.7 XML sitemap is not generated by schedule (reported by @dexterityzx) has been fixed in #14822 by @jameshalsall in 2.2-develop branch Related commits: 1. 9463c77 2. d95f044 3. a065434 - #7861: Using search in Admin panel, and choosing "% in Products" returns full catalog (reported by @spyrule) has been fixed in #12735 by @hannassy in 2.2-develop branch Related commits: 1. 0666b27 2. f5d93c3 3. 790ac31 - #12193: Catalog not filtered by admin search bar (reported by @gianiaco) has been fixed in #12735 by @hannassy in 2.2-develop branch Related commits: 1. 0666b27 2. f5d93c3 3. 790ac31
- Loading branch information
Showing
8 changed files
with
82 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
app/code/Magento/CatalogSearch/Ui/DataProvider/Product/AddFulltextFilterToCollection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
|
||
namespace Magento\CatalogSearch\Ui\DataProvider\Product; | ||
|
||
use Magento\Framework\Data\Collection; | ||
use Magento\CatalogSearch\Model\ResourceModel\Search\Collection as SearchCollection; | ||
use Magento\Ui\DataProvider\AddFilterToCollectionInterface; | ||
|
||
/** | ||
* Class AddFulltextFilterToCollection | ||
*/ | ||
class AddFulltextFilterToCollection implements AddFilterToCollectionInterface | ||
{ | ||
/** | ||
* Search Collection | ||
* | ||
* @var SearchCollection | ||
*/ | ||
private $searchCollection; | ||
|
||
/** | ||
* @param SearchCollection $searchCollection | ||
*/ | ||
public function __construct(SearchCollection $searchCollection) | ||
{ | ||
$this->searchCollection = $searchCollection; | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
* | ||
* @SuppressWarnings(PHPMD.UnusedFormalParameter) | ||
*/ | ||
public function addFilter(Collection $collection, $field, $condition = null) | ||
{ | ||
/** @var $collection \Magento\Catalog\Model\ResourceModel\Product\Collection */ | ||
if (isset($condition['fulltext']) && !empty($condition['fulltext'])) { | ||
$this->searchCollection->addBackendSearchFilter($condition['fulltext']); | ||
$productIds = $this->searchCollection->load()->getAllIds(); | ||
$collection->addIdFilter($productIds); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
app/code/Magento/CatalogSearch/view/adminhtml/ui_component/product_listing.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
<listing xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Ui:etc/ui_configuration.xsd"> | ||
<listingToolbar name="listing_top"> | ||
<filterSearch name="fulltext"/> | ||
</listingToolbar> | ||
</listing> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters