Skip to content

Commit 20506ef

Browse files
author
Oleksandr Manchenko
committed
Merge branch 'develop' of https://github.corp.ebay.com/magento-qmt/magento2ce into MTA-2343
Conflicts: dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/AbstractReview.php dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Payment.php dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping.php dev/tests/functional/tests/app/Magento/Checkout/Test/Block/Onepage/Shipping/Method.php dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Constraint/AssertProductAttributeAbsenceForAttributeMapping.php dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Fixture/GoogleShoppingAttribute.xml dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Fixture/GoogleShoppingAttribute/AttributeSetId.php dev/tests/functional/tests/app/Magento/GoogleShopping/Test/Repository/GoogleShoppingAttribute.xml
2 parents b52a6da + e9b1713 commit 20506ef

File tree

1,400 files changed

+87787
-16714
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,400 files changed

+87787
-16714
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ atlassian*
3131
!/pub/media/customer/.htaccess
3232
/pub/media/downloadable/*
3333
!/pub/media/downloadable/.htaccess
34+
/pub/media/import/*
35+
!/pub/media/import/.htaccess
3436
/pub/media/theme/*
3537
/pub/media/theme_customization/*
3638
!/pub/media/theme_customization/.htaccess

.travis.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@ env:
99
- TEST_SUITE=integration_integrity
1010
- TEST_SUITE=static_phpcs
1111
- TEST_SUITE=static_annotation
12+
cache:
13+
apt: true
14+
directories:
15+
- $HOME/.composer/cache
16+
- $HOME/.cache/bin
1217
matrix:
1318
exclude:
1419
- php: 5.6
@@ -18,6 +23,16 @@ matrix:
1823
before_install:
1924
- sudo apt-get update -qq
2025
- sudo apt-get install -y -qq postfix
26+
- sh -c 'if [ "$CASHER_DIR" ]; then
27+
if [ -x $HOME/.cache/bin/composer ]; then
28+
$HOME/.cache/bin/composer self-update; echo '';
29+
else
30+
mkdir -p $HOME/.cache/bin;
31+
curl --connect-timeout 30 -sS https://getcomposer.org/installer \
32+
| php -- --install-dir $HOME/.cache/bin/ --filename composer;
33+
fi
34+
fi'
35+
- export PATH="$HOME/.cache/bin:$PATH"
2136
before_script:
2237
# Mock mail
2338
- sudo service postfix stop
@@ -46,7 +61,7 @@ before_script:
4661
# Change memory_limit for travis
4762
- echo 'memory_limit = -1' >> ~/.phpenv/versions/$(phpenv version-name)/etc/conf.d/travis.ini
4863
- phpenv rehash;
49-
- composer install --no-interaction --dev
64+
- composer install --no-interaction --prefer-dist
5065
script:
5166
# Unit tests
5267
- sh -c "if [ '$TEST_SUITE' = 'unit' ]; then ./vendor/bin/phpunit -c dev/tests/unit/phpunit.xml.dist; fi"
@@ -59,4 +74,4 @@ script:
5974
# Static tests [Code Style]
6075
- sh -c "if [ '$TEST_SUITE' = 'static_phpcs' ]; then cd dev/tests/static; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest::testCodeStyle'; fi"
6176
# Static tests [Code Style]
62-
- sh -c "if [ '$TEST_SUITE' = 'static_annotation' ]; then cd dev/tests/static; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest::testAnnotationStandard'; fi"
77+
- sh -c "if [ '$TEST_SUITE' = 'static_annotation' ]; then cd dev/tests/static; ./../../../vendor/bin/phpunit -c phpunit.xml.dist --filter 'Magento\\\\Test\\\\Php\\\\LiveCodeTest::testAnnotationStandard'; fi"

CHANGELOG.md

Lines changed: 119 additions & 78 deletions
Large diffs are not rendered by default.

app/code/Magento/AdminNotification/composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
"description": "N/A",
44
"require": {
55
"php": "~5.5.0|~5.6.0",
6-
"magento/module-store": "0.74.0-beta15",
7-
"magento/module-backend": "0.74.0-beta15",
8-
"magento/module-media-storage": "0.74.0-beta15",
9-
"magento/framework": "0.74.0-beta15",
6+
"magento/module-store": "0.74.0-beta16",
7+
"magento/module-backend": "0.74.0-beta16",
8+
"magento/module-media-storage": "0.74.0-beta16",
9+
"magento/framework": "0.74.0-beta16",
1010
"lib-libxml": "*",
1111
"magento/magento-composer-installer": "*"
1212
},
1313
"type": "magento2-module",
14-
"version": "0.74.0-beta15",
14+
"version": "0.74.0-beta16",
1515
"license": [
1616
"OSL-3.0",
1717
"AFL-3.0"
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
<?php
2+
/**
3+
* Copyright © 2015 Magento. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\AdvancedPricingImportExport\Controller\Adminhtml\Export;
7+
8+
use Magento\ImportExport\Controller\Adminhtml\Export as ExportController;
9+
use Magento\Framework\Controller\ResultFactory;
10+
use Magento\AdvancedPricingImportExport\Model\Export\AdvancedPricing as ExportAdvancedPricing;
11+
use Magento\Catalog\Model\Product as CatalogProduct;
12+
13+
class GetFilter extends ExportController
14+
{
15+
/**
16+
* Get grid-filter of entity attributes action.
17+
*
18+
* @return \Magento\Framework\Controller\ResultInterface
19+
*/
20+
public function execute()
21+
{
22+
$data = $this->getRequest()->getParams();
23+
if ($this->getRequest()->isXmlHttpRequest() && $data) {
24+
try {
25+
if ($data['entity'] == ExportAdvancedPricing::ENTITY_ADVANCED_PRICING) {
26+
$data['entity'] = CatalogProduct::ENTITY;
27+
}
28+
/** @var \Magento\Framework\View\Result\Layout $resultLayout */
29+
$resultLayout = $this->resultFactory->create(ResultFactory::TYPE_LAYOUT);
30+
/** @var $attrFilterBlock \Magento\ImportExport\Block\Adminhtml\Export\Filter */
31+
$attrFilterBlock = $resultLayout->getLayout()->getBlock('export.filter');
32+
/** @var $export \Magento\ImportExport\Model\Export */
33+
$export = $this->_objectManager->create('Magento\ImportExport\Model\Export');
34+
$export->setData($data);
35+
$export->filterAttributeCollection(
36+
$attrFilterBlock->prepareCollection($export->getEntityAttributeCollection())
37+
);
38+
return $resultLayout;
39+
} catch (\Exception $e) {
40+
$this->messageManager->addError($e->getMessage());
41+
}
42+
} else {
43+
$this->messageManager->addError(__('Please correct the data sent.'));
44+
}
45+
/** @var \Magento\Backend\Model\View\Result\Redirect $resultRedirect */
46+
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
47+
$resultRedirect->setPath('adminhtml/*/index');
48+
return $resultRedirect;
49+
}
50+
}

0 commit comments

Comments
 (0)