Skip to content

Commit 1d436c3

Browse files
committed
PB-235: Story Bug for PB-107: Adding Condition Filter will Not Update Total until After Saving Edit Form & Reopening
1 parent 97cac50 commit 1d436c3

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

app/code/Magento/PageBuilder/Controller/Adminhtml/Form/Element/ProductTotals.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ class ProductTotals extends \Magento\Backend\App\Action implements HttpPostActio
4141
*/
4242
private $conditionsHelper;
4343

44-
/**
45-
* @var \Magento\Catalog\Api\\CategoryRepositoryInterface
46-
*/
47-
private $categoryRepository;
48-
4944
/**
5045
* @var \Magento\Framework\Controller\Result\JsonFactory
5146
*/
@@ -64,7 +59,6 @@ class ProductTotals extends \Magento\Backend\App\Action implements HttpPostActio
6459
* @param \Magento\Rule\Model\Condition\Sql\Builder $sqlBuilder
6560
* @param \Magento\CatalogWidget\Model\Rule $rule
6661
* @param \Magento\Widget\Helper\Conditions $conditionsHelper
67-
* @param \Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository
6862
* @param \Magento\Framework\Controller\Result\JsonFactory $jsonFactory
6963
* @param \Magento\CatalogInventory\Helper\Stock $stockFilter
7064
*/
@@ -74,15 +68,13 @@ public function __construct(
7468
\Magento\Rule\Model\Condition\Sql\Builder $sqlBuilder,
7569
\Magento\CatalogWidget\Model\Rule $rule,
7670
\Magento\Widget\Helper\Conditions $conditionsHelper,
77-
\Magento\Catalog\Api\CategoryRepositoryInterface $categoryRepository,
7871
\Magento\Framework\Controller\Result\JsonFactory $jsonFactory,
7972
\Magento\CatalogInventory\Helper\Stock $stockFilter
8073
) {
8174
$this->productCollectionFactory = $productCollectionFactory;
8275
$this->sqlBuilder = $sqlBuilder;
8376
$this->rule = $rule;
8477
$this->conditionsHelper = $conditionsHelper;
85-
$this->categoryRepository = $categoryRepository;
8678
$this->jsonFactory = $jsonFactory;
8779
$this->stockFilter = $stockFilter;
8880
parent::__construct($context);

0 commit comments

Comments
 (0)