Skip to content
Permalink
Browse files

resolve issue patch not working in 2.2

  • Loading branch information
niravkrish committed Apr 29, 2019
1 parent 206d0d2 commit a77ec3b637cdb26ad23fad9f86a4c37f9ca0a389
Showing with 6 additions and 13 deletions.
  1. +6 −13 app/code/Magento/Wishlist/Block/Customer/Wishlist/Item/Column/Cart.php
@@ -6,11 +6,7 @@

namespace Magento\Wishlist\Block\Customer\Wishlist\Item\Column;

use Magento\Catalog\Block\Product\View;
use Magento\Catalog\Controller\Adminhtml\Product\Initialization\StockDataFilter;
use Magento\Catalog\Model\Product\Image\UrlBuilder;
use Magento\Framework\App\ObjectManager;
use Magento\Framework\View\ConfigInterface;

/**
* Wishlist block customer item cart column
@@ -28,20 +24,17 @@ class Cart extends \Magento\Wishlist\Block\Customer\Wishlist\Item\Column
* @param \Magento\Catalog\Block\Product\Context $context
* @param \Magento\Framework\App\Http\Context $httpContext
* @param array $data
* @param ConfigInterface|null $config
* @param UrlBuilder|null $urlBuilder
* @param View|null $productView
* @param \Magento\Catalog\Block\Product\View $productView
*/
public function __construct(
\Magento\Catalog\Block\Product\Context $context,
\Magento\Framework\App\Http\Context $httpContext,
array $data = [],
?ConfigInterface $config = null,
?UrlBuilder $urlBuilder = null,
?View $productView = null
\Magento\Catalog\Block\Product\View $productView = null,
array $data = []
) {
$this->productView = $productView ?: ObjectManager::getInstance()->get(View::class);
parent::__construct($context, $httpContext, $data, $config, $urlBuilder);
$this->productView = $productView ?:
\Magento\Framework\App\ObjectManager::getInstance()->get(\Magento\Catalog\Block\Product\View::class);
parent::__construct($context, $httpContext, $data);
}

/**

0 comments on commit a77ec3b

Please sign in to comment.
You can’t perform that action at this time.