Skip to content

Is Allowed Guest Checkout #7463

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 164 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
164 commits
Select commit Hold shift + click to select a range
4c9eb05
MAGETWO-54833: Modularity Wishlist Module
balex13 Jun 29, 2016
0bd578a
CICD-2267: Fix auth.json permissions
Jul 5, 2016
c7f35c2
Merge pull request #131 from magento-cicd/CICD-2267-2.1
Jul 6, 2016
2c79303
Merge branch '2.1' of github.com:magento/magento2ce into EPAM-SPRINT-…
rganin Jul 11, 2016
d4bb397
MAGETWO-54963: Extensibility and modularity improvements
nikshostko Jul 2, 2016
041c4fe
MAGETWO-54963: Extensibility and modularity improvements
nikshostko Jul 6, 2016
0530a78
Merge pull request #153 from magento-troll/EPAM-SPRINT-13-2.1
Jul 14, 2016
fbb3710
MAGETWO-54721: Not possible to use Braintree as a payment method when…
YevSent Jun 29, 2016
9104a45
MAGETWO-54721: Not possible to use Braintree as a payment method when…
YevSent Jun 30, 2016
8116265
Merge remote-tracking branch 'origin/2.1' into MAGETWO-55354
isitnikov Jul 14, 2016
b584425
MAGETWO-53777: [Github] Magento 2.1 RC1 - Error when running CLI upgr…
mazhalai Jun 1, 2016
ca303c5
MAGETWO-53777: [Github] Magento 2.1 RC1 - Error when running CLI upgr…
Jun 29, 2016
b1a5b9f
MAGETWO-53777: [Github] Magento 2.1 RC1 - Error when running CLI upgr…
Jul 5, 2016
73be107
MAGETWO-53777: [Github] Magento 2.1 RC1 - Error when running CLI upgr…
Jul 6, 2016
00c1839
MAGETWO-55357: Portdown MAGETWO-53777 down to M2.1.x branch
isitnikov Jul 15, 2016
ca1de66
MAGETWO-55357: Portdown MAGETWO-53777 down to M2.1.x branch
isitnikov Jul 15, 2016
0db2405
MAGETWO-52448: [Cloud] Customer address is displayed incorrectly
May 13, 2016
7edea03
MAGETWO-50026: [Github] SalesInvoiceRepository attributes not correct…
NadiyaS Jul 5, 2016
f8aaf00
MAGETWO-50026: [Github] SalesInvoiceRepository attributes not correct…
NadiyaS Jul 11, 2016
ba83889
MAGETWO-53793: Minicart Maximum Display Recently Added Item is broken…
Jun 3, 2016
236c071
MAGETWO-53793: Minicart Maximum Display Recently Added Item is broken…
Jun 3, 2016
ecf2f62
MAGETWO-53793: Minicart Maximum Display Recently Added Item is broken…
Jun 14, 2016
63f7945
MAGETWO-55462: Portdown MAGETWO-52448 down to M2.1.x branch
isitnikov Jul 18, 2016
1d4873b
MAGETWO-55598: Portdown MAGETWO-54787 down to M2.1.x branch
Jul 19, 2016
0f643ac
Merge pull request #169 from magento-sparta/MAGETWO-55357
slavvka Jul 21, 2016
df20093
MAGETWO-54682: Fast load of product options
mslabko Jul 21, 2016
cd102ba
MAGETWO-54682: Fast load of product options
kandy Jul 21, 2016
4a4e5e3
MAGETWO-54682: Fast load of product options
mslabko Jul 21, 2016
feccbc6
MAGETWO-54682: Fast load of product options
mslabko Jul 21, 2016
3c3d612
MAGETWO-54682: Fast load of product options
mslabko Jul 21, 2016
cf195e7
MAGETWO-54682: Fast load of product options
kandy Jul 22, 2016
283ea31
Merge branch '2.1' into MAGETWO-55462
magento-services-vantiv-deploy Jul 22, 2016
3c51b12
MAGETWO-54682: Fast load of product options
mslabko Jul 22, 2016
0fbf468
Merge branch '2.1' into MAGETWO-55463
magento-services-vantiv-deploy Jul 25, 2016
122ff34
MAGETWO-55897: Fix backward compatibility of MTF framework
rganin Jul 25, 2016
8d653c7
Merge pull request #179 from magento-sparta/MAGETWO-55462
slavvka Jul 25, 2016
3143eb1
Merge branch '2.1' of github.com:magento/magento2ce into MAGETWO-55897
rganin Jul 25, 2016
57d5fe3
MAGETWO-55128: Updating Notifications
nikshostko Jul 19, 2016
4390ade
Merge branch '2.1' into MAGETWO-55463
magento-services-vantiv-deploy Jul 25, 2016
66c5156
MAGETWO-55620: Lightweight load of review wizard step
ishakhsuvarov Jul 25, 2016
451054e
Merge pull request #178 from magento-troll/MAGETWO-55897
slavvka Jul 25, 2016
4d16d0f
Merge branch '2.1' into MAGETWO-55463
magento-services-vantiv-deploy Jul 25, 2016
32b7a8f
Merge pull request #181 from magento-sparta/MAGETWO-55463
slavvka Jul 26, 2016
547c401
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-54682-2.1
kandy Jul 26, 2016
8cb08c6
Merge branch '2.1' into MAGETWO-55598
magento-services-vantiv-deploy Jul 26, 2016
680a2f6
Merge branch '2.1' of github.com:magento/magento2ce into sprint15_2.1
rganin Jul 26, 2016
e0e1324
Merge pull request #183 from magento-troll/sprint15_2.1
Jul 26, 2016
7b2ea9c
Merge branch '2.1' into MAGETWO-55598
magento-services-vantiv-deploy Jul 27, 2016
a2520af
Merge pull request #188 from magento-sparta/MAGETWO-55598
slavvka Jul 27, 2016
18e69a1
Merge branch '2.1' into MAGETWO-55354
magento-services-vantiv-deploy Jul 27, 2016
d61ff0d
Merge pull request #189 from magento-sparta/MAGETWO-55354
slavvka Jul 27, 2016
392ed5d
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-54682-2.1
kandy Jul 27, 2016
da99ac0
Merge pull request #195 from magento-performance/MAGETWO-54682-2.1
slavvka Jul 28, 2016
a77272e
Merge branch '2.1' into MAGETWO-55466
magento-services-vantiv-deploy Jul 28, 2016
921d219
Merge pull request #208 from magento-sparta/MAGETWO-55466
slavvka Aug 1, 2016
af28bac
MDVA-676: Magento 2.1.1 Publication
magento-services-vantiv-deploy Aug 3, 2016
593f137
Merge pull request #210 from magento-sparta/MDVA-676
slavvka Aug 3, 2016
5c1eaff
MAGETWO-54682: [Customer] Fast load of product options
Aug 3, 2016
aaff5c0
Merge pull request #223 from magento-performance/bc-fix
Aug 4, 2016
9568f75
MAGETWO-56582: Cannot save a product with images for the second time
kandy Aug 9, 2016
9767984
MAGETWO-56582: Cannot save a product with images for the second time
kandy Aug 9, 2016
98661de
MAGETWO-55620: Lightweight load of review wizard step
ishakhsuvarov Aug 9, 2016
c478ec2
MAGETWO-55620: Merge branch '2.1' of github.com:magento/magento2ce in…
ishakhsuvarov Aug 9, 2016
bb49726
Merge pull request #229 from magento-performance/MAGETWO-56582
Aug 9, 2016
b720661
MAGETWO-56591: Configurable product doesn't visible in category on fr…
mslabko Aug 10, 2016
549bc1b
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-56591
mslabko Aug 10, 2016
f599a3b
Merge pull request #236 from magento-performance/MAGETWO-56591
slavvka Aug 11, 2016
9fd1510
MAGETWO-55620: Merge branch '2.1' of github.com:magento/magento2ce in…
ishakhsuvarov Aug 11, 2016
ca3fb20
MAGETWO-54964: Shopping cart page - Reordered items count is not gett…
igrybkov Aug 16, 2016
e5d5940
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 10, 2016
e53a322
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 11, 2016
b7257c8
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 11, 2016
b8e0635
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 11, 2016
d2270a4
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 15, 2016
8e034ef
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 15, 2016
120df77
MAGETWO-56126: Login failed after new custom attribute was added
cpartica Aug 15, 2016
4b112e6
Merge pull request #256 from magento-fearless-kiwis/FearlessKiwis-MAG…
Aug 16, 2016
3f916ad
MAGETWO-55620: Merge branch '2.1' of github.com:magento/magento2ce in…
ishakhsuvarov Aug 17, 2016
207e965
Merge pull request #252 from magento-performance/MAGETWO-55620
Aug 18, 2016
d80874e
MAGETWO-56974: Can not upgrade Magento 2.0.9 to 2.1.1 with sample data
viktym Aug 18, 2016
5dac51f
MAGETWO-52660: Improve performance of static assets deployment
mslabko Aug 18, 2016
b3f018c
MAGETWO-56974: Can not upgrade Magento 2.0.9 to 2.1.1 with sample data
viktym Aug 18, 2016
c274ad6
Merge remote-tracking branch 'magento2/2.1' into MAGETWO-56974-2-1
viktym Aug 19, 2016
fb08392
MAGETWO-56426: Invoice creation through API change order status. Bac…
valdislav Aug 19, 2016
182988f
MAGETWO-56431: Shipment creation through API change order status. Ba…
valdislav Aug 19, 2016
1c36424
MAGETWO-52660: Improve performance of static assets deployment
mslabko Aug 19, 2016
25a153f
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-57185
mslabko Aug 19, 2016
66db224
MAGETWO-52660: Improve performance of static assets deployment
mslabko Aug 19, 2016
94f59b4
MAGETWO-56431: Shipment creation through API change order status. Ba…
valdislav Aug 19, 2016
b794302
MAGETWO-56431: Shipment creation through API change order status. Ba…
valdislav Aug 19, 2016
058ac23
MAGETWO-52660: Improve performance of static assets deployment
mslabko Aug 19, 2016
e431f61
MAGETWO-56892: Backport Solution: Value for multiple select attribute…
Aug 19, 2016
3267af2
Merge pull request #261 from magento-falcons/MAGETWO-56974-2-1
Aug 19, 2016
70096fc
MAGETWO-52660: Improve performance of static assets deployment
mslabko Aug 19, 2016
f6423da
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-57185
mslabko Aug 19, 2016
6bf8f23
Merge remote-tracking branch 'mainline/2.1' into DRAGONS-MAGETWO-5689…
Aug 19, 2016
084715e
Merge pull request #264 from magento-dragons/DRAGONS-MAGETWO-56892-2.1
Aug 19, 2016
95d9fb2
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-57185
mslabko Aug 22, 2016
24f594a
MAGETWO-57032: CLONE - Swatches not displayed when using search
xmav Aug 22, 2016
1406b1f
Merge pull request #265 from magento-performance/MAGETWO-57185
Aug 22, 2016
144f363
MAGETWO-57420: Backport of MAGETWO-54320: Category page showing old p…
cpartica Aug 22, 2016
461cbc5
MAGETWO-57420: Backport of MAGETWO-54320: Category page showing old p…
cpartica Aug 22, 2016
60178b1
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 23, 2016
ae05195
MAGETWO-56945: CLONE - Problem while upgrading to 2.1.0
Aug 23, 2016
93700fc
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 23, 2016
403f363
Merge pull request #279 from magento-fearless-kiwis/FearlessKiwis-MAG…
Aug 24, 2016
37a9d0d
Merge branch '2.1' into FearlessKiwis-MAGETWO-56945-Problem-while-upg…
cpartica Aug 24, 2016
d530867
Merge pull request #280 from magento-fearless-kiwis/FearlessKiwis-MAG…
Aug 24, 2016
8343f89
MAGETWO-57049: CLONE - Group product not found by weight using advanc…
Aug 24, 2016
88892fb
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 24, 2016
974c074
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 24, 2016
d7e1aba
Merge branch '2.1' into MAGETWO-57410-config_vars_form_key
Aug 24, 2016
28730e7
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-54677-patch21
Aug 25, 2016
dcada9c
MAGETWO-56952: [Backport] Issue with get active payment methods (getA…
YevSent Aug 25, 2016
a6adfe1
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 25, 2016
5442255
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 25, 2016
59b8dd6
MAGETWO-57410: Adding too many configurable product option causes bro…
Aug 25, 2016
0ff8138
Merge pull request #278 from magento-okapis/MAGETWO-57410-config_vars…
Aug 25, 2016
2765acf
MAGETWO-56188: Magento 2.1.1 Publication
magento-team Aug 25, 2016
3de01e2
MAGETWO-56940: [Backport] Kount and 3D Secure doesn't work for Braint…
YevSent Aug 26, 2016
b9b3d59
Merge remote-tracking branch 'remotes/origin/MAGETWO-57049-CLONE-Grou…
Aug 26, 2016
ec1884b
MAGETWO-57460: [Backport] - Exception occurs when tracking shipment w…
YevSent Aug 29, 2016
2cee4ec
MAGETWO-57003: [Backport] - Scope selector on product page does not d…
Aug 30, 2016
ed0c0c4
MAGETWO-57460: [Backport] - Exception occurs when tracking shipment w…
YevSent Aug 31, 2016
82fe4e0
MAGETWO-57003: Scope selector on product page does not display all re…
igrybkov Aug 31, 2016
d45399e
MAGETWO-57032: Swatches not displayed when using search
igrybkov Aug 31, 2016
3486c37
MAGETWO-54964: Shopping cart page - Reordered items count is not gett…
igrybkov Aug 31, 2016
30e2e85
MAGETWO-57812: [BACKPORT 2.1.2] It is possible to delete self admin a…
Aug 31, 2016
8a2bd36
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-54677-patch21
Sep 1, 2016
b8826e3
Merge pull request #271 from magento-firedrakes/MAGETWO-54677-patch21
MomotenkoNatalia Sep 1, 2016
a4f5f73
Merge branch '2.1' into okapis-pr-2-1-x
Sep 1, 2016
14bf85a
MAGETWO-57032: Swatches not displayed when using search
Sep 2, 2016
1a444dc
MAGETWO-54964: Shopping cart page - Reordered items count is not gett…
igrybkov Sep 2, 2016
13ef833
MAGETWO-57812: [BACKPORT 2.1.2] It is possible to delete self admin a…
Sep 2, 2016
c951b9e
Merge pull request #307 from magento-dragons/dragons-2.1-pr
Sep 2, 2016
9af69bf
Merge pull request #299 from magento-okapis/okapis-pr-2-1-x
Sep 2, 2016
3f3f02c
MAGETWO-57812: [BACKPORT 2.1.2] It is possible to delete self admin a…
Sep 5, 2016
86e5124
Merge pull request #342 from magento-dragons/MAGETWO-57812
Sep 5, 2016
02b59e7
MAGETWO-57097: [Backport] Issue with fetching shipping charges based …
rliukshyn Aug 26, 2016
3fce7b2
MAGETWO-57460: [Backport] - Exception occurs when tracking shipment w…
Sep 6, 2016
4623aa1
MAGETWO-56952: [Backport] Issue with get active payment methods (getA…
Sep 6, 2016
c1f392d
MAGETWO-56940: [Backport] Kount and 3D Secure doesn't work for Braint…
Sep 6, 2016
72a8c9f
MAGETWO-55116: Port the fix from MAGETWO-54737 to 2.1
Jul 29, 2016
2349f40
MAGETWO-57460: [Backport] - Exception occurs when tracking shipment w…
YevSent Sep 9, 2016
fa8a2bf
Merge pull request #360 from magento-mpi/MPI-PR-2.1
Sep 9, 2016
52c0f12
Merge remote-tracking branch 'mainline/2.1' into pr-2.1
Sep 9, 2016
99db07c
MAGETWO-55126: [Backport] [API] Can not link simple product to config…
Sep 9, 2016
2547252
MAGETWO-55126: [Backport] [API] Can not link simple product to config…
Sep 9, 2016
e656a00
Merge pull request #362 from magento-east/pr-2.1
Sep 10, 2016
fa6ae74
Merge remote-tracking branch 'mainline/2.1' into MAGETWO-55126-Cannot…
Sep 12, 2016
dcc2686
Merge pull request #384 from magento-okapis/MAGETWO-55126-Cannot-link…
Sep 13, 2016
95ac4c1
MAGETWO-58401: Cannot create configurable product with child by REST …
Sep 14, 2016
7d150f6
MAGETWO-58401: Cannot create configurable product with child by REST …
Sep 16, 2016
6cee3c7
MAGETWO-58401: Cannot create configurable product with child by REST …
Sep 19, 2016
a38975d
Merge pull request #414 from magento-okapis/MAGETWO-58401-Cannot-crea…
Sep 21, 2016
eb5d1a7
MAGETWO-58568: [SalesOrder] HTML tags displayed on the price field.
Sep 22, 2016
262c223
MAGETWO-58700: UI upgrade failures during S2 builds
Sep 22, 2016
b2dff40
MAGETWO-58568: [SalesOrder] HTML tags displayed on the price field.
Sep 22, 2016
ef44f3f
MAGETWO-58929: Functional Improvements for Magento 2.1.2
Sep 23, 2016
b3efdcb
Merge pull request #428 from magento-okapis/MAGETWO-58568-html_tags_p…
Sep 23, 2016
9334b98
Merge pull request #429 from magento-okapis/MAGETWO-58700-Ui-Upgrade-…
Sep 23, 2016
ee7aa09
MAGETWO-58929: Functional Improvements for Magento 2.1.2
Sep 23, 2016
a985e5c
MAGETWO-58929: Functional Improvements for Magento 2.1.2
Sep 23, 2016
4e3a2ab
MAGETWO-57845: Magento 2.1.2 Publication
magento-team Oct 10, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2.1.1
=============
To get detailed information about changes in Magento 2.1.1, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.1CE.html "Magento Community Edition (CE) Release Notes")

2.1.0
=============
To get detailed information about changes in Magento 2.1.0, please visit [Magento Community Edition (CE) Release Notes](http://devdocs.magento.com/guides/v2.1/release-notes/ReleaseNotes2.1.0CE.html "Magento Community Edition (CE) Release Notes")
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Use the following table to verify you have the correct prerequisites to install
<td><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/apache.html">Apache</a></td>
</tr>
<tr>
<td>PHP 5.6.x, 7.0.2 or 7.0.6</td>
<td>PHP 5.6.x, 7.0.2, 7.0.4 or 7.0.6</td>
<td><code>php -v</code></td>
<td><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-ubuntu.html">PHP Ubuntu</a><br><a href="http://devdocs.magento.com/guides/v2.0/install-gde/prereq/php-centos.html">PHP CentOS</a></td>
</tr>
Expand Down
17 changes: 14 additions & 3 deletions app/bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@
#ini_set('display_errors', 1);

/* PHP version validation */
if (!defined('PHP_VERSION_ID') || !(PHP_VERSION_ID >= 50600 && PHP_VERSION_ID < 50700 || PHP_VERSION_ID === 70002 || PHP_VERSION_ID >= 70006)) {
if (!defined('PHP_VERSION_ID') || !(PHP_VERSION_ID >= 50005 && PHP_VERSION_ID < 50700 || PHP_VERSION_ID === 70002 || PHP_VERSION_ID === 70004 || PHP_VERSION_ID >= 70006)) {
if (PHP_SAPI == 'cli') {
echo 'Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. ' .
echo 'Magento supports PHP 5.6.5, 7.0.2, 7.0.4 and 7.0.6 or later. ' .
'Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html';
} else {
echo <<<HTML
<div style="font:12px/1.35em arial, helvetica, sans-serif;">
<p>Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read
<p>Magento supports PHP 5.6.5, 7.0.2, 7.0.4 and 7.0.6 or later. Please read
<a target="_blank" href="http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html">
Magento System Requirements</a>.
</div>
Expand All @@ -35,6 +35,17 @@
$mask = file_exists($umaskFile) ? octdec(file_get_contents($umaskFile)) : 002;
umask($mask);

if (empty($_SERVER['ENABLE_IIS_REWRITES']) || ($_SERVER['ENABLE_IIS_REWRITES'] != 1)) {
/*
* Unset headers used by IIS URL rewrites.
*/
unset($_SERVER['HTTP_X_REWRITE_URL']);
unset($_SERVER['HTTP_X_ORIGINAL_URL']);
unset($_SERVER['IIS_WasUrlRewritten']);
unset($_SERVER['UNENCODED_URL']);
unset($_SERVER['ORIG_PATH_INFO']);
}

if (!empty($_SERVER['MAGE_PROFILER'])
&& isset($_SERVER['HTTP_ACCEPT'])
&& strpos($_SERVER['HTTP_ACCEPT'], 'text/html') !== false
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/AdminNotification/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "magento/module-admin-notification",
"description": "N/A",
"require": {
"php": "~5.6.0|7.0.2|~7.0.6",
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
"magento/module-store": "100.1.*",
"magento/module-backend": "100.1.*",
"magento/module-media-storage": "100.1.*",
"magento/framework": "100.1.*",
"lib-libxml": "*"
},
"type": "magento2-module",
"version": "100.1.0",
"version": "100.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/AdvancedPricingImportExport/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-advanced-pricing-import-export",
"description": "N/A",
"require": {
"php": "~5.6.0|7.0.2|~7.0.6",
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
"magento/module-catalog": "101.0.*",
"magento/module-catalog-inventory": "100.1.*",
"magento/module-eav": "100.1.*",
Expand All @@ -13,7 +13,7 @@
"magento/framework": "100.1.*"
},
"type": "magento2-module",
"version": "100.1.0",
"version": "100.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorization/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "magento/module-authorization",
"description": "Authorization module provides access to Magento ACL functionality.",
"require": {
"php": "~5.6.0|7.0.2|~7.0.6",
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
"magento/module-backend": "100.1.*",
"magento/framework": "100.1.*"
},
"type": "magento2-module",
"version": "100.1.0",
"version": "100.1.1",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,10 @@ protected function placeCheckoutOrder()
);
} catch (\Exception $exception) {
$result->setData('error', true);
$result->setData('error_messages', __('Unable to place order. Please try again later.'));
$result->setData(
'error_messages',
__('An error occurred on the server. Please try to place the order again.')
);
}
if ($response instanceof Http) {
$response->representJson($this->jsonHelper->jsonEncode($result));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,10 @@ public function textExecuteFailedPlaceOrderDataProvider()
{
$objectFailed = new \Magento\Framework\DataObject();
$objectFailed->setData('error', true);
$objectFailed->setData('error_messages', __('Unable to place order. Please try again later.'));
$objectFailed->setData(
'error_messages',
__('An error occurred on the server. Please try to place the order again.')
);

return [
[
Expand Down
4 changes: 2 additions & 2 deletions app/code/Magento/Authorizenet/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "magento/module-authorizenet",
"description": "N/A",
"require": {
"php": "~5.6.0|7.0.2|~7.0.6",
"php": "~5.6.5|7.0.2|7.0.4|~7.0.6",
"magento/module-sales": "100.1.*",
"magento/module-store": "100.1.*",
"magento/module-quote": "100.1.*",
Expand All @@ -13,7 +13,7 @@
"magento/framework": "100.1.*"
},
"type": "magento2-module",
"version": "100.1.0",
"version": "100.1.2",
"license": [
"proprietary"
],
Expand Down
2 changes: 1 addition & 1 deletion app/code/Magento/Authorizenet/i18n/en_US.csv
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"Order saving error: %1","Order saving error: %1"
"Please choose a payment method.","Please choose a payment method."
"We can\'t process your order right now. Please try again later.","We can\'t process your order right now. Please try again later."
"Unable to place order. Please try again later.","Unable to place order. Please try again later."
"An error occurred on the server. Please try to place the order again.","An error occurred on the server. Please try to place the order again."
"Credit Card: xxxx-%1","Credit Card: xxxx-%1"
"amount %1","amount %1"
failed.,failed.
Expand Down
8 changes: 1 addition & 7 deletions app/code/Magento/Backend/Block/Store/Switcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@

/**
* Store switcher block
*
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
*/
class Switcher extends \Magento\Backend\Block\Template
{
Expand Down Expand Up @@ -152,11 +150,7 @@ public function getWebsites()
{
$websites = $this->_storeManager->getWebsites();
if ($websiteIds = $this->getWebsiteIds()) {
foreach (array_keys($websites) as $websiteId) {
if (!in_array($websiteId, $websiteIds)) {
unset($websites[$websiteId]);
}
}
$websites = array_intersect_key($websites, array_flip($websiteIds));
}
return $websites;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@
* See COPYING.txt for license details.
*/

// @codingStandardsIgnoreFile

namespace Magento\Backend\Block\Widget\Grid\Column\Renderer;

/**
* Backend grid item renderer currency
*
* @author Magento Core Team <core@magentocommerce.com>
*/
class Currency extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\AbstractRenderer
{
Expand Down Expand Up @@ -49,6 +45,11 @@ class Currency extends \Magento\Backend\Block\Widget\Grid\Column\Renderer\Abstra
*/
protected $_localeCurrency;

/**
* @var \Magento\Framework\Pricing\PriceCurrencyInterface
*/
private $priceCurrency;

/**
* @param \Magento\Backend\Block\Context $context
* @param \Magento\Store\Model\StoreManagerInterface $storeManager
Expand Down Expand Up @@ -76,6 +77,23 @@ public function __construct(
$this->_defaultBaseCurrency = $currencyFactory->create()->load($defaultBaseCurrencyCode);
}

/**
* Get price currency
*
* @return \Magento\Framework\Pricing\PriceCurrencyInterface
*
* @deprecated
*/
private function getPriceCurrency()
{
if ($this->priceCurrency === null) {
$this->priceCurrency = \Magento\Framework\App\ObjectManager::getInstance()->get(
\Magento\Framework\Pricing\PriceCurrencyInterface::class
);
}
return $this->priceCurrency;
}

/**
* Renders grid column
*
Expand All @@ -84,15 +102,9 @@ public function __construct(
*/
public function render(\Magento\Framework\DataObject $row)
{
if ($data = (string)$this->_getValue($row)) {
$currency_code = $this->_getCurrencyCode($row);
$data = floatval($data) * $this->_getRate($row);
$sign = (bool)(int)$this->getColumn()->getShowNumberSign() && $data > 0 ? '+' : '';
$data = sprintf("%f", $data);
$data = $this->_localeCurrency->getCurrency($currency_code)->toCurrency($data);
return $sign . $data;
}
return $this->getColumn()->getDefault();
$price = $this->_getValue($row) ? $this->_getValue($row) : $this->getColumn()->getDefault();
$displayPrice = $this->getPriceCurrency()->convertAndFormat($price, false);
return $displayPrice;
}

/**
Expand Down
53 changes: 53 additions & 0 deletions app/code/Magento/Backend/Test/Unit/Block/Store/SwitcherTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<?php
/**
* Copyright © 2016 Magento. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Backend\Test\Unit\Block\Store;

class SwitcherTest extends \PHPUnit_Framework_TestCase
{
/**
* @var \Magento\Backend\Block\Store\Switcher
*/
private $switcherBlock;

private $storeManagerMock;

protected function setUp()
{
$this->storeManagerMock = $this->getMock(\Magento\Store\Model\StoreManagerInterface::class);
$objectHelper = new \Magento\Framework\TestFramework\Unit\Helper\ObjectManager($this);
$context = $objectHelper->getObject(
\Magento\Backend\Block\Template\Context::class,
[
'storeManager' => $this->storeManagerMock,
]
);

$this->switcherBlock = $objectHelper->getObject(
\Magento\Backend\Block\Store\Switcher::class,
['context' => $context]
);
}

public function testGetWebsites()
{
$websiteMock = $this->getMock(\Magento\Store\Model\Website::class, [], [], '', false);
$websites = [0 => $websiteMock, 1 => $websiteMock];
$this->storeManagerMock->expects($this->once())->method('getWebsites')->will($this->returnValue($websites));
$this->assertEquals($websites, $this->switcherBlock->getWebsites());
}

public function testGetWebsitesIfSetWebsiteIds()
{
$websiteMock = $this->getMock(\Magento\Store\Model\Website::class, [], [], '', false);
$websites = [0 => $websiteMock, 1 => $websiteMock];
$this->storeManagerMock->expects($this->once())->method('getWebsites')->will($this->returnValue($websites));

$this->switcherBlock->setWebsiteIds([1]);
$expected = [1 => $websiteMock];
$this->assertEquals($expected, $this->switcherBlock->getWebsites());
}
}
Loading