Skip to content
Snippets Groups Projects
Commit 5b68ddea authored by Illia Grybkov's avatar Illia Grybkov
Browse files

Merge remote-tracking branch 'origin/MAGETWO-43887' into PR

parents 098d3ff5 cbb48d25
No related merge requests found
...@@ -24,11 +24,17 @@ ...@@ -24,11 +24,17 @@
<arguments> <arguments>
<argument name="id" xsi:type="string">grouped_grid_popup</argument> <argument name="id" xsi:type="string">grouped_grid_popup</argument>
</arguments> </arguments>
<block class="Magento\Backend\Block\Widget\Grid\Column" as="entity_id"> <block class="Magento\Backend\Block\Widget\Grid\Column" as="entity_ids">
<arguments> <arguments>
<argument name="header" xsi:type="string" translate="true">ID</argument>
<argument name="type" xsi:type="string">skip-list</argument> <argument name="type" xsi:type="string">skip-list</argument>
<argument name="renderer" xsi:type="string">Magento\Backend\Block\Widget\Grid\Column\Renderer\Checkbox</argument> <argument name="renderer" xsi:type="string">Magento\Backend\Block\Widget\Grid\Column\Renderer\Checkbox</argument>
<argument name="name" xsi:type="string">entity_ids</argument>
<argument name="index" xsi:type="string">entity_id</argument>
</arguments>
</block>
<block class="Magento\Backend\Block\Widget\Grid\Column" as="entity_id">
<arguments>
<argument name="header" xsi:type="string" translate="true">ID</argument>
<argument name="index" xsi:type="string">entity_id</argument> <argument name="index" xsi:type="string">entity_id</argument>
</arguments> </arguments>
</block> </block>
......
...@@ -132,7 +132,7 @@ define([ ...@@ -132,7 +132,7 @@ define([
if (!target.is('input')) { if (!target.is('input')) {
target.closest('[data-role=row]') target.closest('[data-role=row]')
.find('[data-column=entity_id] input') .find('[data-column=entity_ids] input')
.prop('checked', function (element, value) { .prop('checked', function (element, value) {
return !value; return !value;
}) })
...@@ -142,7 +142,7 @@ define([ ...@@ -142,7 +142,7 @@ define([
popup.on( popup.on(
'change', 'change',
'[data-role=row] [data-column=entity_id] input', '[data-role=row] [data-column=entity_ids] input',
$.proxy(function (event) { $.proxy(function (event) {
var element = $(event.target), var element = $(event.target),
product = {}; product = {};
...@@ -175,12 +175,12 @@ define([ ...@@ -175,12 +175,12 @@ define([
return $(element).val(); return $(element).val();
}).toArray(); }).toArray();
ajaxSettings.data.filter = $.extend(ajaxSettings.data.filter || {}, { ajaxSettings.data.filter = $.extend(ajaxSettings.data.filter || {}, {
'entity_id': ids 'entity_ids': ids
}); });
}) })
.on('gridajax', function (event, ajaxRequest) { .on('gridajax', function (event, ajaxRequest) {
ajaxRequest.done(function () { ajaxRequest.done(function () {
popup.find('[data-role=row] [data-column=entity_id] input') popup.find('[data-role=row] [data-column=entity_ids] input')
.each(function (index, element) { .each(function (index, element) {
var $element = $(element); var $element = $(element);
$element.prop('checked', !!selectedProductList[$element.val()]); $element.prop('checked', !!selectedProductList[$element.val()]);
......
...@@ -129,7 +129,6 @@ ...@@ -129,7 +129,6 @@
<constraint name="Magento\Catalog\Test\Constraint\AssertProductVisibleInCategory" /> <constraint name="Magento\Catalog\Test\Constraint\AssertProductVisibleInCategory" />
<constraint name="Magento\Bundle\Test\Constraint\AssertBundleProductPage" /> <constraint name="Magento\Bundle\Test\Constraint\AssertBundleProductPage" />
<constraint name="Magento\Catalog\Test\Constraint\AssertProductInStock" /> <constraint name="Magento\Catalog\Test\Constraint\AssertProductInStock" />
<constraint name="Magento\Bundle\Test\Constraint\AssertGroupedPriceOnBundleProductPage" />
<constraint name="Magento\Bundle\Test\Constraint\AssertBundleItemsOnProductPage" /> <constraint name="Magento\Bundle\Test\Constraint\AssertBundleItemsOnProductPage" />
<constraint name="Magento\Bundle\Test\Constraint\AssertBundlePriceView" /> <constraint name="Magento\Bundle\Test\Constraint\AssertBundlePriceView" />
<constraint name="Magento\Bundle\Test\Constraint\AssertBundlePriceType" /> <constraint name="Magento\Bundle\Test\Constraint\AssertBundlePriceType" />
......
...@@ -37,7 +37,7 @@ class Grid extends GridInterface ...@@ -37,7 +37,7 @@ class Grid extends GridInterface
* *
* @var string * @var string
*/ */
protected $selectItem = '[data-column=entity_id] input'; protected $selectItem = '[data-column=entity_ids] input';
/** /**
* Press 'Add Selected Products' button * Press 'Add Selected Products' button
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment