Skip to content

Commit efb1262

Browse files
committed
MAGETWO-64459: [Backport] - Can't get store-specific data via catalog API - for 2.1
1 parent 82f7131 commit efb1262

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app/code/Magento/Catalog/Model/ProductRepository.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,10 @@ protected function addFilterGroupToCollection(
673673
$customFilterMethods['website_id'] = 'addWebsiteFilter';
674674
break;
675675
default:
676-
$customFilterValues['fields'][] = ['attribute' => $filter->getField(), $conditionType => $filter->getValue()];
676+
$customFilterValues['fields'][] = [
677+
'attribute' => $filter->getField(),
678+
$conditionType => $filter->getValue(),
679+
];
677680
$customFilterMethods['fields'] = 'addFieldToFilter';
678681
break;
679682
}

dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_websites_and_stores.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

dev/tests/integration/testsuite/Magento/Catalog/_files/products_with_websites_and_stores_rollback.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22
/**
3-
* Copyright © Magento, Inc. All rights reserved.
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
66

0 commit comments

Comments
 (0)