Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
8e0ff74
MAGETWO-86709: Widget isn't updated on Storefront if related Products…
danielrenaud May 10, 2018
7e85049
MAGETWO-89410: [2.3] Test testValidComposerJson fails on bundle exten…
danielrenaud May 10, 2018
2518b24
MAGETWO-86709: Widget isn't updated on Storefront if related Products…
danielrenaud May 11, 2018
32a3284
MC-57: Admin should be able to mass change products' status.
jilu1 May 14, 2018
bd730bc
Merge remote-tracking branch 'upstream/2.3-develop' into MC-57
jilu1 May 15, 2018
a92215a
MC-77: Customer should see basic Configurable Product details.
jilu1 May 15, 2018
3c825ca
MC-92: Customer should be able to see product configuration options.
jilu1 May 15, 2018
1698e2b
MC-97: Customer should be able to successfully add the product to the…
jilu1 May 15, 2018
375132a
MAGETWO-90358: Auto-generate ExtensionAttributes object
May 15, 2018
a73491c
MAGETWO-90350: Admin Section is not visible in backend on production …
StasKozar May 16, 2018
028e67d
MAGETWO-89411: [2.3] Failed Magento\Test\Integrity\ExceptionHierarchy…
svitja May 16, 2018
69ed26a
MC-81: Customer should not be able to add the product to the cart if …
jilu1 May 16, 2018
05af625
MC-113: Admin should be able to add and remove images for simple prod…
jilu1 May 16, 2018
38c48a6
MAGETWO-91450: date reverts in past after clicking out of product edi…
May 16, 2018
5b92f7b
MAGETWO-89412: [2.3] Composer static test of PHP versions is failed f…
zakdma May 17, 2018
087cf5d
MAGETWO-90350: Admin Section is not visible in backend on production …
StasKozar May 17, 2018
d050393
MAGETWO-90818: Files and folders symlinked in pub/media cannot be del…
StasKozar May 17, 2018
14a9854
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-90350
zakdma May 17, 2018
6817451
MAGETWO-89409: [2.3] Test Magento\Ui\Component\ConfigurationTest::tes…
zakdma May 17, 2018
e2c06ce
MC-81: Customer should not be able to add the product to the cart if …
jilu1 May 17, 2018
ba3a3fc
MC-86: Admin should be able to remove a configuration from a Configur…
tomreece May 17, 2018
28ffb3a
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-89409
zakdma May 18, 2018
060fdf6
MAGETWO-89408: [2.3] Failed Magento\Test\Integrity\ClassesTest::testC…
zakdma May 18, 2018
283a799
MAGETWO-90801: Can't create customer account on checkout success page…
StasKozar May 18, 2018
2d37d37
MAGETWO-77759: [2.3] - Related Products Rule for Up-sell Products wit…
DianaRusin May 18, 2018
1860714
Merge remote-tracking branch 'origin/MAGETWO-89411' into 2.3-develop-…
StasKozar May 18, 2018
dec4c87
MAGETWO-61364: [GitHub] Dependency check in the static tests fails fo…
zakdma May 18, 2018
fd561ac
MAGETWO-89412: [2.3] Composer static test of PHP versions is failed f…
zakdma May 18, 2018
d0b8c1d
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-77759
DianaRusin May 18, 2018
4e6f3e5
Merge remote-tracking branch 'origin/MAGETWO-90350' into 2.3-develop-…
DianaRusin May 18, 2018
7cda895
MAGETWO-61364: [GitHub] Dependency check in the static tests fails fo…
zakdma May 18, 2018
2340c29
MAGETWO-89408: [2.3] Failed Magento\Test\Integrity\ClassesTest::testC…
zakdma May 18, 2018
4bbe677
MAGETWO-90818: Files and folders symlinked in pub/media cannot be del…
StasKozar May 18, 2018
47bb4aa
MAGETWO-90818: Files and folders symlinked in pub/media cannot be del…
StasKozar May 18, 2018
b090d9c
MAGETWO-90818: Files and folders symlinked in pub/media cannot be del…
StasKozar May 18, 2018
04afef0
MAGETWO-90804: "Hide from Product Page" option does not work for chil…
svitja May 18, 2018
d63c3d4
MAGETWO-90358: Auto-generate ExtensionAttributes object
May 18, 2018
b649fee
MC-95: Admin should be able to edit configuration to add a value to a…
tomreece May 18, 2018
eb64a14
MC-113: Admin should be able to add default image for simple products.
jilu1 May 18, 2018
58328f2
MAGETWO-91440: Unassigned Attribute Values Render as N/A in Product C…
cpartica May 18, 2018
b362e64
Merge branch 'MAGETWO-86709-catalog-widget' into MAGETWO-89410-testVa…
danielrenaud May 18, 2018
b21bc95
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-8941…
danielrenaud May 18, 2018
cad44a3
15210-Fixed product tier pricing pagination issue in admin
saravananvelu May 19, 2018
560aa38
Fixed coding related issue
gelanivishal May 20, 2018
e12ae6e
MAGETWO-72841: Update On Save Reindex do not work on configurable pro…
svitja May 21, 2018
22df4df
Merge remote-tracking branch 'origin/MAGETWO-89408' into 2.3-develop-…
svitja May 21, 2018
5da39f2
MAGETWO-61364: [GitHub] Dependency check in the static tests fails fo…
zakdma May 21, 2018
ebb6f2a
Merge remote-tracking branch 'origin/MAGETWO-89409' into 2.3-develop-…
svitja May 21, 2018
bd1aa51
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-61364
zakdma May 21, 2018
290ae6e
Merge remote-tracking branch 'origin/MAGETWO-90818' into 2.3-develop-…
DianaRusin May 21, 2018
86822c8
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-72841
svitja May 21, 2018
ad42b71
MAGETWO-72841: Update On Save Reindex do not work on configurable pro…
svitja May 21, 2018
2d9841e
Merge remote-tracking branch 'origin/MAGETWO-89412' into 2.3-develop-…
StasKozar May 21, 2018
2a1cb43
MAGETWO-90804: "Hide from Product Page" option does not work for chil…
svitja May 21, 2018
bf7c6b9
MAGETWO-90804: "Hide from Product Page" option does not work for chil…
svitja May 21, 2018
54589bc
MAGETWO-90804: "Hide from Product Page" option does not work for chil…
svitja May 21, 2018
2a7c8c8
MAGETWO-90804: "Hide from Product Page" option does not work for chil…
svitja May 21, 2018
b3222d6
MAGETWO-90804: "Hide from Product Page" option does not work for chil…
svitja May 21, 2018
7d1e871
MAGETWO-72841: Update On Save Reindex do not work on configurable pro…
svitja May 21, 2018
8cab441
MAGETWO-72841: Update On Save Reindex do not work on configurable pro…
svitja May 21, 2018
2cde479
Merge remote-tracking branch 'origin/MAGETWO-90804' into 2.3-develop-…
DianaRusin May 21, 2018
4a6769f
MAGETWO-91440: Unassigned Attribute Values Render as N/A in Product C…
cpartica May 21, 2018
c651af9
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-9144…
cpartica May 21, 2018
f275a21
MAGETWO-91440: Unassigned Attribute Values Render as N/A in Product C…
cpartica May 21, 2018
59bbe23
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-8941…
danielrenaud May 21, 2018
5e5a381
merge magento/2.3-develop into magento-honey-badgers/MAGETWO-91440-un…
May 21, 2018
5bbe2c7
MC-86: Admin should be able to remove a configuration from a Configur…
tomreece May 21, 2018
426940e
MC-95: Admin should be able to edit configuration to add a value to a…
tomreece May 21, 2018
1984d58
Merge branch 'MC-95' into RE-develop
tomreece May 21, 2018
1a5c9e5
Merge branch 'MC-57' into RE-develop
jilu1 May 21, 2018
7f9a392
Merge branch 'MC-113' into RE-develop
jilu1 May 21, 2018
3822ca4
Merge branch 'MC-44' into RE-develop
jilu1 May 21, 2018
f8ca650
MC-132: add advance catalog search for simple product tests.
jilu1 May 8, 2018
b4f59cd
MC-137: add advance catalog search for virtual product tests.
jilu1 May 10, 2018
2267f37
MC-132: add advance catalog search for simple product tests.
jilu1 May 14, 2018
9751bdf
MC-137: add advance catalog search for virtual product tests.
jilu1 May 14, 2018
8ff66ec
MC-132: add advance catalog search for simple product tests.
jilu1 May 17, 2018
8a8ed66
Removed Illegal trailing whitespace.
gelanivishal May 22, 2018
1c89cde
MAGETWO-61364: [GitHub] Dependency check in the static tests fails fo…
zakdma May 22, 2018
892cf1a
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-61364
zakdma May 22, 2018
780e91d
MAGETWO-90801: Can't create customer account on checkout success page…
StasKozar May 22, 2018
dbfdf02
Merge remote-tracking branch 'origin/MAGETWO-77759' into 2.3-develop-…
svitja May 22, 2018
bdffd58
MAGETWO-90797: Deleting bundled options does not work
zakdma May 22, 2018
988a826
Merge remote-tracking branch 'origin/MAGETWO-72841' into 2.3-develop-…
StasKozar May 22, 2018
45cf5ec
Merge remote-tracking branch 'origin/2.3-develop' into RE-develop
tomreece May 22, 2018
8ec681f
merge magento/2.3-develop into magento-pangolin/RE-develop
May 22, 2018
6b41a71
MAGETWO-87492: Renaming 2.3 upgrade script
pdohogne-magento May 22, 2018
07c6070
Merge remote-tracking branch 'trigger/MAGETWO-91450-invalid_filter_da…
cpartica May 22, 2018
7607778
MAGETWO-91450: date reverts in past after clicking out of product edit
dthampy May 22, 2018
ba6bf77
Removed newly added comments
saravananvelu May 23, 2018
6de6006
Inherited the parent method to fix pagination issue
saravananvelu May 23, 2018
64b5f63
ADHOC: update the contribution templates to include a not on actual a…
dmanners May 23, 2018
0ff4b6d
ENGCOM-1652: ADHOC: update the contribution templates to include a no…
magento-engcom-team May 23, 2018
d2e2e18
Merge remote-tracking branch 'origin/MAGETWO-90797' into 2.3-develop-…
svitja May 23, 2018
db2d875
Merge remote-tracking branch 'origin/MAGETWO-61364' into 2.3-develop-…
StasKozar May 23, 2018
b3fe5f8
Merge remote-tracking branch 'origin/MAGETWO-90801' into 2.3-develop-…
svitja May 23, 2018
6231184
Merge remote-tracking branch 'origin/2.3-develop-pr19' into 2.3-devel…
svitja May 23, 2018
9e90850
Merge remote-tracking branch 'origin/2.3-develop' into 2.3-develop-pr19
zakdma May 23, 2018
ec3eb1a
Fixed product tier pricing pagination issue in admin
saravananvelu May 23, 2018
42ea7e5
Merge remote-tracking branch 'origin/MAGETWO-87492_2.3-upgrade-change…
danielrenaud May 23, 2018
5fb7d1c
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-8941…
danielrenaud May 23, 2018
71d4da5
merge magento/2.3-develop into magento-architects/MAGETWO-90358-Exten…
May 23, 2018
39ff541
Merge pull request #2575 from magento-borg/MAGETWO-89410-testValidCom…
slavvka May 23, 2018
edfa353
merge magento/2.3-develop into magento-pangolin/RE-develop
May 23, 2018
d56a57b
typo correction
AnshuMishra17 May 22, 2018
a24105d
Merge pull request #2584 from magento-pangolin/RE-develop
cpartica May 23, 2018
3aafe9e
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-9144…
cpartica May 23, 2018
8b422e9
Merge remote-tracking branch 'origin/2.3-develop' into MAGETWO-89412
zakdma May 24, 2018
caa0d44
Merge remote-tracking branch 'origin/MAGETWO-89412' into 2.3-develop-…
zakdma May 24, 2018
af84959
Merge pull request #2591 from magento-tsg/2.3-develop-pr19
May 24, 2018
75960ce
15210-Fixed product tier pricing pagination
VladimirZaets May 24, 2018
9d2b93c
ENGCOM-1653: 15210-Fixed product tier pricing pagination issue in adm…
magento-engcom-team May 24, 2018
9ebdcc5
Duplicate array keys
May 24, 2018
0627a3c
ENGCOM-1661: [Forwardport] typo correction #15466
magento-engcom-team May 24, 2018
8e14879
Return tag misspelled
May 24, 2018
04b3d46
MAGETWO-91440: Unassigned Attribute Values Render as N/A in Product C…
cpartica May 24, 2018
df7edb6
merge magento/2.3-develop into magento-honey-badgers/MAGETWO-91440-un…
May 24, 2018
9be22d7
Merge remote-tracking branch 'mainline/2.3-develop' into MAGETWO-9144…
cpartica May 24, 2018
d5ee97a
Merge branch 'MAGETWO-91440-unassigned-attribute-n-a' of github.com:m…
cpartica May 24, 2018
3df6681
Merge pull request #2576 from magento-honey-badgers/MAGETWO-91440-una…
cpartica May 24, 2018
f9db7a0
MAGETWO-90358: Auto-generate ExtensionAttributes object
May 24, 2018
b421fa7
MAGETWO-90358: Auto-generate ExtensionAttributes object
May 24, 2018
f9903be
MAGETWO-90358: Auto-generate ExtensionAttributes object
May 24, 2018
3d2d072
Merge pull request #2592 from magento-architects/MAGETWO-90358-Extens…
paliarush May 25, 2018
6747251
ENGCOM-1661: [Forwardport] typo correction #15466
paliarush May 25, 2018
551a424
ENGCOM-1652: ADHOC: update the contribution templates to include a no…
paliarush May 25, 2018
7532620
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team May 25, 2018
7f65902
ENGCOM-1653: 15210-Fixed product tier pricing pagination issue in adm…
May 25, 2018
ef1b9b1
ENGCOM-1669: Return tag misspelled #15492
magento-engcom-team May 25, 2018
125044d
ENGCOM-1670: Duplicate array keys #15489
magento-engcom-team May 25, 2018
7d26829
ENGCOM-1670: Duplicate array keys #15489
May 25, 2018
1f1e1a0
ENGCOM-1669: Return tag misspelled #15492
May 25, 2018
bed17e0
:arrows_clockwise: [EngCom] Public Pull Requests - 2.3-develop
magento-engcom-team May 25, 2018
46165ab
Fix HTML syntax in report.phtml error template
abcpremium May 23, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@

### Expected result
<!--- Tell us what should happen -->
1. [Screenshot, logs]
1. [Screenshots, logs or description]

### Actual result
<!--- Tell us what happens instead -->
1. [Screenshot, logs]
1. [Screenshots, logs or description]
3 changes: 0 additions & 3 deletions app/code/Magento/Backend/etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,6 @@
<item name="dev" xsi:type="const">Magento\Config\Model\Config\Structure\ElementVisibilityInterface::HIDDEN</item>
<item name="general/locale/code" xsi:type="const">Magento\Config\Model\Config\Structure\ElementVisibilityInterface::DISABLED</item>
</argument>
<argument name="exemptions" xsi:type="array">
<item name="dev/debug/debug_logging" xsi:type="string"/>
</argument>
</arguments>
</type>
<type name="Magento\Backend\Model\Search\Config\Result\Builder">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ protected function setUp()

$this->paymentInfoMock = $this->getMockBuilder(Payment::class)
->disableOriginalConstructor()
->setMethods(['__wakeup'])
->setMethods(['__wakeup', 'getExtensionAttributes'])
->getMock();

$this->paymentTokenMock = $objectManager->getObject(PaymentToken::class);
Expand All @@ -107,6 +107,10 @@ protected function setUp()
->setMethods(['create'])
->getMock();

$this->paymentInfoMock->expects(self::any())
->method('getExtensionAttributes')
->willReturn($this->paymentExtensionMock);

$this->subject = [
'payment' => $this->paymentDataObjectMock,
];
Expand Down Expand Up @@ -184,7 +188,7 @@ public function testHandleWithoutToken()
->method('create');

$this->handler->handle($this->subject, $response);
self::assertNull($this->paymentInfoMock->getExtensionAttributes());
self::assertNotNull($this->paymentInfoMock->getExtensionAttributes());
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,11 @@ protected function setUp()

$this->payment = $this->getMockBuilder(Payment::class)
->disableOriginalConstructor()
->setMethods(['__wakeup'])
->setMethods(['__wakeup', 'getExtensionAttributes'])
->getMock();

$this->payment->expects(self::any())->method('getExtensionAttributes')->willReturn($this->paymentExtension);

$config = $this->getConfigMock();

$this->paymentHandler = new VaultDetailsHandler(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
use Magento\Braintree\Observer\DataAssignObserver;
use Magento\Braintree\Gateway\Config\PayPal\Config;
use Magento\Braintree\Model\Paypal\Helper\QuoteUpdater;
use Magento\Quote\Api\Data\CartExtensionInterface;

/**
* Class QuoteUpdaterTest
Expand Down Expand Up @@ -281,7 +282,7 @@ private function updateQuoteStep(\PHPUnit_Framework_MockObject_MockObject $quote
*/
private function getQuoteMock()
{
return $this->getMockBuilder(Quote::class)
$quoteMock = $this->getMockBuilder(Quote::class)
->setMethods(
[
'getIsVirtual',
Expand All @@ -291,9 +292,21 @@ private function getQuoteMock()
'collectTotals',
'getShippingAddress',
'getBillingAddress',
'getExtensionAttributes'
]
)->disableOriginalConstructor()
->getMock();

$cartExtensionMock = $this->getMockBuilder(CartExtensionInterface::class)
->setMethods(['setShippingAssignments'])
->disableOriginalConstructor()
->getMock();

$quoteMock->expects(self::any())
->method('getExtensionAttributes')
->willReturn($cartExtensionMock);

return $quoteMock;
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,8 @@ protected function getBundleOptions()
'template' => 'ui/dynamic-rows/templates/collapsible',
'additionalClasses' => 'admin__field-wide',
'dataScope' => 'data.bundle_options',
'bundleSelectionsName' => 'product_bundle_container.bundle_selections'
'isDefaultFieldScope' => 'is_default',
'bundleSelectionsName' => 'product_bundle_container.bundle_selections',
],
],
],
Expand Down Expand Up @@ -378,7 +379,10 @@ protected function getBundleOptions()
'selection_qty' => '',
],
'links' => ['insertData' => '${ $.provider }:${ $.dataProvider }'],
'source' => 'product'
'imports' => [
'inputType' => '${$.provider}:${$.dataScope}.type',
],
'source' => 'product',
],
],
],
Expand Down Expand Up @@ -594,11 +598,14 @@ protected function getBundleSelections()
'config' => [
'componentType' => Container::NAME,
'isTemplate' => true,
'component' => 'Magento_Bundle/js/components/bundle-record',
'component' => 'Magento_Ui/js/dynamic-rows/record',
'is_collection' => true,
'imports' => [
'onTypeChanged' => '${ $.provider }:${ $.bundleOptionsDataScope }.type'
]
'inputType' => '${$.parentName}:inputType',
],
'exports' => [
'isDefaultValue' => '${$.parentName}:isDefaultValue.${$.index}',
],
],
],
],
Expand Down Expand Up @@ -691,11 +698,15 @@ protected function getBundleSelections()
'componentType' => Form\Field::NAME,
'formElement' => Form\Element\Checkbox::NAME,
'dataType' => Form\Element\DataType\Price::NAME,
'component' => 'Magento_Bundle/js/components/bundle-user-defined-checkbox',
'label' => __('User Defined'),
'dataScope' => 'selection_can_change_qty',
'value' => '1',
'valueMap' => ['true' => '1', 'false' => '0'],
'sortOrder' => 110,
'imports' => [
'inputType' => '${$.parentName}:inputType',
],
],
],
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ define([
clearing: false,
parentContainer: '',
parentSelections: '',
changer: ''
changer: '',
exports: {
value: '${$.parentName}:isDefaultValue'
}
},

/**
Expand Down Expand Up @@ -58,10 +61,6 @@ define([

this.prefer = typeMap[type];
this.elementTmpl(this.templates[typeMap[type]]);

if (this.prefer === 'radio' && this.checked()) {
this.clearValues();
}
},

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,57 @@ define([
label: '',
columnsHeader: false,
columnsHeaderAfterRender: true,
addButton: false
addButton: false,
isDefaultFieldScope: 'is_default',
defaultRecords: {
use: [],
moreThanOne: false,
state: {}
},
listens: {
inputType: 'onInputTypeChange',
isDefaultValue: 'onIsDefaultValue'
}
},

/**
* Handler for type select.
*
* @param {String} inputType - changed.
*/
onInputTypeChange: function (inputType) {
if (this.defaultRecords.moreThanOne && (inputType === 'radio' || inputType === 'select')) {
_.each(this.defaultRecords.use, function (index, counter) {
this.source.set(
this.dataScope + '.bundle_selections.' + index + '.' + this.isDefaultFieldScope,
counter ? '0' : '1'
);
}.bind(this));
}
},

/**
* Handler for is_default field.
*
* @param {Object} data - changed data.
*/
onIsDefaultValue: function (data) {
var cb,
use = 0;

this.defaultRecords.use = [];

cb = function (elem, key) {

if (~~elem) {
this.defaultRecords.use.push(key);
use++;
}

this.defaultRecords.moreThanOne = use > 1;
}.bind(this);

_.each(data, cb);
},

/**
Expand All @@ -29,7 +79,6 @@ define([
recordIndex;

this.parsePagesData(data);
this.templates.record.bundleOptionsDataScope = this.dataScope;

if (newData.length) {
if (this.insertData().length) {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
/**
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

define([
'Magento_Ui/js/form/element/single-checkbox'
], function (Checkbox) {
'use strict';

return Checkbox.extend({
defaults: {
listens: {
inputType: 'onInputTypeChange'
}
},

/**
* Handler for "inputType" property
*
* @param {String} data
*/
onInputTypeChange: function (data) {
data === 'checkbox' || data === 'multi' ?
this.clear()
.visible(false) :
this.visible(true);
}
});
});
16 changes: 16 additions & 0 deletions app/code/Magento/Catalog/Block/Product/Compare/ListCompare.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,22 @@ public function getProductAttributeValue($product, $attribute)
return (string)$value == '' ? __('No') : $value;
}

/**
* Check if any of the products has a value set for the attribute
*
* @param \Magento\Catalog\Model\ResourceModel\Eav\Attribute $attribute
* @return bool
*/
public function hasAttributeValueForProducts($attribute)
{
foreach ($this->getItems() as $item) {
if ($item->hasData($attribute->getAttributeCode())) {
return true;
}
}
return false;
}

/**
* Retrieve Print URL
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
*/
namespace Magento\Catalog\Model\Indexer\Product\Eav;

use Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\AbstractEav;

/**
* Abstract action reindex class
*/
Expand Down Expand Up @@ -51,7 +53,7 @@ abstract public function execute($ids);
/**
* Retrieve array of EAV type indexers
*
* @return \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\AbstractEav[]
* @return AbstractEav[]
*/
public function getIndexers()
{
Expand All @@ -69,7 +71,7 @@ public function getIndexers()
* Retrieve indexer instance by type
*
* @param string $type
* @return \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\AbstractEav
* @return AbstractEav
* @throws \Magento\Framework\Exception\LocalizedException
*/
public function getIndexer($type)
Expand Down Expand Up @@ -108,7 +110,7 @@ public function reindex($ids = null)
/**
* Synchronize data between index storage and original storage
*
* @param \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\AbstractEav $indexer
* @param AbstractEav $indexer
* @param string $destinationTable
* @param array $ids
* @throws \Exception
Expand All @@ -134,16 +136,17 @@ protected function syncData($indexer, $destinationTable, $ids)
/**
* Retrieve product relations by children and parent
*
* @param \Magento\Catalog\Model\ResourceModel\Product\Indexer\Eav\AbstractEav $indexer
* @param AbstractEav $indexer
* @param array $ids
*
* @param bool $onlyParents
* @return array $ids
*/
protected function processRelations($indexer, $ids, $onlyParents = false)
protected function processRelations(AbstractEav $indexer, array $ids, bool $onlyParents = false)
{
$parentIds = $indexer->getRelationsByChild($ids);
$parentIds = array_unique(array_merge($parentIds, $ids));
$childIds = $onlyParents ? [] : $indexer->getRelationsByParent($parentIds);

return array_unique(array_merge($ids, $childIds, $parentIds));
}
}
10 changes: 3 additions & 7 deletions app/code/Magento/Catalog/Model/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -2108,6 +2108,8 @@ public function reset()
/**
* Get cache tags associated with object id
*
* @deprecated
* @see \Magento\Catalog\Model\Product::getIdentities
* @return string[]
*/
public function getCacheIdTags()
Expand Down Expand Up @@ -2533,13 +2535,7 @@ public function setTypeId($typeId)
*/
public function getExtensionAttributes()
{
$extensionAttributes = $this->_getExtensionAttributes();
if (null === $extensionAttributes) {
/** @var \Magento\Catalog\Api\Data\ProductExtensionInterface $extensionAttributes */
$extensionAttributes = $this->extensionAttributesFactory->create(ProductInterface::class);
$this->setExtensionAttributes($extensionAttributes);
}
return $extensionAttributes;
return $this->_getExtensionAttributes();
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1570,7 +1570,7 @@ protected function getEntityPkName(\Magento\Eav\Model\Entity\AbstractEntity $ent
}

/**
* Add requere tax percent flag for product collection
* Add require tax percent flag for product collection
*
* @return $this
*/
Expand Down
Loading