Skip to content

Commit db21f1a

Browse files
committed
Merge branch 'MAGETWO-40131' of https://github.corp.ebay.com/magento-firedrakes/magento2ce into last_bugs
2 parents 8ca3552 + cb38e2f commit db21f1a

File tree

2 files changed

+1
-48
lines changed

2 files changed

+1
-48
lines changed

app/code/Magento/Sales/Block/Adminhtml/Order/Grid.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -12,51 +12,4 @@
1212
*/
1313
class Grid extends \Magento\Backend\Block\Widget\Grid
1414
{
15-
/**
16-
* @var \Magento\Framework\View\Element\UiComponentFactory
17-
*/
18-
protected $componentFactory;
19-
20-
/**
21-
* @param \Magento\Backend\Block\Template\Context $context
22-
* @param \Magento\Backend\Helper\Data $backendHelper
23-
* @param \Magento\Framework\View\Element\UiComponentFactory $componentFactory
24-
* @param array $data
25-
*/
26-
public function __construct(
27-
\Magento\Backend\Block\Template\Context $context,
28-
\Magento\Backend\Helper\Data $backendHelper,
29-
\Magento\Framework\View\Element\UiComponentFactory $componentFactory,
30-
array $data = []
31-
) {
32-
$this->componentFactory = $componentFactory;
33-
parent::__construct($context, $backendHelper, $data);
34-
}
35-
36-
/**
37-
* @return $this
38-
* @throws \Magento\Framework\Exception\LocalizedException
39-
*/
40-
protected function _prepareCollection()
41-
{
42-
$component = $this->componentFactory->create('sales_order_grid');
43-
$this->prepareComponent($component);
44-
$component->render();
45-
$collection = $component->getContext()->getDataProvider()->getCollection();
46-
$this->setData('dataSource', $collection);
47-
48-
return parent::_prepareCollection();
49-
}
50-
51-
/**
52-
* @param \Magento\Framework\View\Element\UiComponentInterface $componentElement
53-
* @return void
54-
*/
55-
protected function prepareComponent(\Magento\Framework\View\Element\UiComponentInterface $componentElement)
56-
{
57-
foreach ($componentElement->getChildComponents() as $childComponent) {
58-
$this->prepareComponent($childComponent);
59-
}
60-
$componentElement->prepare();
61-
}
6215
}

app/code/Magento/Sales/Controller/Adminhtml/Order/AbstractMassAction.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ abstract class AbstractMassAction extends \Magento\Backend\App\Action
2121
/**
2222
* Redirect url
2323
*/
24-
const REDIRECT_URL = '*/*/';
24+
const REDIRECT_URL = 'sales/order/';
2525

2626
/**
2727
* Resource collection

0 commit comments

Comments
 (0)