Skip to content

Commit 84a752f

Browse files
authored
Merge pull request #3501 from magento-plankton/2.1-develop-merge-2.1.16
[Plankton] Magento 2.1.16 Publication
2 parents d15f097 + d9fc109 commit 84a752f

File tree

210 files changed

+2923
-649
lines changed

Some content is hidden

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

210 files changed

+2923
-649
lines changed

CHANGELOG.md

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,61 @@
1+
2.1.16
2+
=============
3+
* GitHub issues:
4+
* [#16653](https://github.com/magento/magento2/issues/16653) -- Not possible to create an invoice (fixed in [magento/magento2#17413](https://github.com/magento/magento2/pull/17413))
5+
* [#16655](https://github.com/magento/magento2/issues/16655) -- Block totalbar not used in invoice create and credit memo create screens (fixed in [magento/magento2#17413](https://github.com/magento/magento2/pull/17413))
6+
* [#4803](https://github.com/magento/magento2/issues/4803) -- Incorrect return value from Product Attribute Repository (fixed in [magento/magento2#15688](https://github.com/magento/magento2/pull/15688))
7+
* [#12250](https://github.com/magento/magento2/issues/12250) -- View.xml is inheriting image sizes from parent (so an optional field is replaced by the value of parent) (fixed in [magento/magento2#17439](https://github.com/magento/magento2/pull/17439))
8+
* [#13429](https://github.com/magento/magento2/issues/13429) -- Magento 2.2.2 password reset strength meter (fixed in [magento/magento2#17290](https://github.com/magento/magento2/pull/17290))
9+
* [#15028](https://github.com/magento/magento2/issues/15028) -- Configurable product addtocart with restAPI not working as expected (fixed in [magento/magento2#17476](https://github.com/magento/magento2/pull/17476))
10+
* [#17289](https://github.com/magento/magento2/issues/17289) -- Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard (fixed in [magento/magento2#17496](https://github.com/magento/magento2/pull/17496))
11+
* [#16555](https://github.com/magento/magento2/issues/16555) -- "Shipping address is not set" exception in Multishipping Checkout. (fixed in [magento/magento2#16783](https://github.com/magento/magento2/pull/16783))
12+
* [#14056](https://github.com/magento/magento2/issues/14056) -- Coupon API not working for guest user (fixed in [magento/magento2#16782](https://github.com/magento/magento2/pull/16782))
13+
* [#6305](https://github.com/magento/magento2/issues/6305) -- Can't save Customizable options (fixed in [magento/magento2#17609](https://github.com/magento/magento2/pull/17609))
14+
* [#16273](https://github.com/magento/magento2/issues/16273) -- Method $product->getUrlInStore() returning extremely long URLs, could be a bug (fixed in [magento/magento2#16310](https://github.com/magento/magento2/pull/16310))
15+
* [#16499](https://github.com/magento/magento2/issues/16499) -- User role issue with customer group (fixed in [magento/magento2#17629](https://github.com/magento/magento2/pull/17629))
16+
* [#13102](https://github.com/magento/magento2/issues/13102) -- review/product/listAjax/id/{{non existent id}/ (fixed in [magento/magento2#17632](https://github.com/magento/magento2/pull/17632))
17+
* [#17648](https://github.com/magento/magento2/issues/17648) -- UI validation rule for valid time am/pm doesn't work when js is minified (fixed in [magento/magento2#17689](https://github.com/magento/magento2/pull/17689))
18+
* [#17700](https://github.com/magento/magento2/issues/17700) -- Message list component: the message type is always error when parameters specified (fixed in [magento/magento2#17702](https://github.com/magento/magento2/pull/17702))
19+
* [#14248](https://github.com/magento/magento2/issues/14248) -- Transparent background becomes black for thumbnails of PNG into Wysiwyg editor... (fixed in [magento/magento2#17855](https://github.com/magento/magento2/pull/17855))
20+
* [#17851](https://github.com/magento/magento2/issues/17851) -- Wishlist icon cut on Shopping cart page in mobile view (fixed in [magento/magento2#17912](https://github.com/magento/magento2/pull/17912))
21+
* [#10687](https://github.com/magento/magento2/issues/10687) -- Product image roles randomly disappear (fixed in [magento/magento2#17553](https://github.com/magento/magento2/pull/17553))
22+
* [#8035](https://github.com/magento/magento2/issues/8035) -- Join extension attributes are not added to Order results (REST api) (fixed in [magento/magento2#16169](https://github.com/magento/magento2/pull/16169))
23+
* [#2146](https://github.com/magento/magento2/issues/2146) -- Countries dropdown is empty (fixed in [magento/magento2#17194](https://github.com/magento/magento2/pull/17194))
24+
* [#4547](https://github.com/magento/magento2/issues/4547) -- Support for new .tech TLD and others required (fixed in [magento/magento2#11576](https://github.com/magento/magento2/pull/11576))
25+
* GitHub pull requests:
26+
* [magento/magento2#17413](https://github.com/magento/magento2/pull/17413) -- [Backport] [Fix #16655] Block totalbar not used in invoice create and credit memo create screens (by @dverkade)
27+
* [magento/magento2#17422](https://github.com/magento/magento2/pull/17422) -- [Backport] Resolved special character issue for sidebar (by @mage2pratik)
28+
* [magento/magento2#15688](https://github.com/magento/magento2/pull/15688) -- [Backport] Fix #4803: Incorrect return value from Product Attribute Repository (by @cream-julian)
29+
* [magento/magento2#17439](https://github.com/magento/magento2/pull/17439) -- [Backport] magento/magento2#12250: View.xml is inheriting image sizes from parennt (by @quisse)
30+
* [magento/magento2#17290](https://github.com/magento/magento2/pull/17290) -- [Backport] Fix bug Magento 2.2.2 password reset strength meter #13429 (by @jignesh-baldha)
31+
* [magento/magento2#17476](https://github.com/magento/magento2/pull/17476) -- [Backport] Convert to string $option->getValue, in order to be compared with other (by @mage2pratik)
32+
* [magento/magento2#17496](https://github.com/magento/magento2/pull/17496) -- [Backport] Magento 2.2.5: Year-to-date dropdown in Stores>Configuration>General>Reports>Dashboard #17289 (by @ronak2ram)
33+
* [magento/magento2#16783](https://github.com/magento/magento2/pull/16783) -- [Backport] Fix the issue with "Shipping address is not set" exception (by @dmytro-ch)
34+
* [magento/magento2#17366](https://github.com/magento/magento2/pull/17366) -- [Backport] Fixed some minor css issue (by @arnoudhgz)
35+
* [magento/magento2#16782](https://github.com/magento/magento2/pull/16782) -- [Backport] issue/14056 - Coupon API not working for guest user (by @gelanivishal)
36+
* [magento/magento2#17083](https://github.com/magento/magento2/pull/17083) -- [Backport] Make scope parameters of methods to save/delete config optional (by @mageprince)
37+
* [magento/magento2#17609](https://github.com/magento/magento2/pull/17609) -- [Backport] 6305 - Resolved product custom option title save issue (by @jignesh-baldha)
38+
* [magento/magento2#17613](https://github.com/magento/magento2/pull/17613) -- [Backport] Added template as argument to the store address renderer to allow custom formatting (by @TomashKhamlai)
39+
* [magento/magento2#16310](https://github.com/magento/magento2/pull/16310) -- #16273: [Backport] Fix bug in method getUrlInStore() of product model (by @vasilii-b)
40+
* [magento/magento2#17629](https://github.com/magento/magento2/pull/17629) -- [Backport] Solution for User role issue with customer group (by @jignesh-baldha)
41+
* [magento/magento2#17632](https://github.com/magento/magento2/pull/17632) -- [Backport] Fixed review list ajax if product not exist redirect to 404 page #13102 (by @mage2pratik)
42+
* [magento/magento2#17667](https://github.com/magento/magento2/pull/17667) -- [Backport] Added unit test for newsletter problem model (by @jignesh-baldha)
43+
* [magento/magento2#17684](https://github.com/magento/magento2/pull/17684) -- [Backport] Fix Custom Attribute Group can not translate in catalog/product page (by @dmytro-ch)
44+
* [magento/magento2#17689](https://github.com/magento/magento2/pull/17689) -- [Backport] Update time12h javascript validation rule to be compatible with js minify (by @dmytro-ch)
45+
* [magento/magento2#17682](https://github.com/magento/magento2/pull/17682) -- [Backport] CMS: Add missing unit tests for model classes (by @dmytro-ch)
46+
* [magento/magento2#17702](https://github.com/magento/magento2/pull/17702) -- [Backport] Message list component fix: the message type is always error when parameters specified (by @dmytro-ch)
47+
* [magento/magento2#17606](https://github.com/magento/magento2/pull/17606) -- [Backport] Catalog: Add unit tests for Cron classes (by @jignesh-baldha)
48+
* [magento/magento2#17774](https://github.com/magento/magento2/pull/17774) -- Fix for ProductLink - setterName was incorrectly being set (by @insanityinside)
49+
* [magento/magento2#17855](https://github.com/magento/magento2/pull/17855) -- [Backport] Fixes black background for png images in wysiwyg editors. (by @eduard13)
50+
* [magento/magento2#17839](https://github.com/magento/magento2/pull/17839) -- [Backport] [Search] Unit test for SynonymAnalyzer model. 2.1 back port. (by @furseyev)
51+
* [magento/magento2#17912](https://github.com/magento/magento2/pull/17912) -- [Backport] Resolved : Wishlist icon cut on Shopping cart page in mobile view #17851 #28 (by @hitesh-wagento)
52+
* [magento/magento2#17940](https://github.com/magento/magento2/pull/17940) -- [Backport] Sales: Add unit test for validator model class (by @dmytro-ch)
53+
* [magento/magento2#17883](https://github.com/magento/magento2/pull/17883) -- Update for pull request #17774 - now using SimpleDataObjectConverter: (by @insanityinside)
54+
* [magento/magento2#17553](https://github.com/magento/magento2/pull/17553) -- [Backport] Fix #10687 - Product image roles disappearing (by @eduard13)
55+
* [magento/magento2#16169](https://github.com/magento/magento2/pull/16169) -- [Backport] #8035 join extension attributes not added to orders (by @Scarraban)
56+
* [magento/magento2#17194](https://github.com/magento/magento2/pull/17194) -- [Backport] Fixes reverted for remove space when only one country in drop-down on both cart (by @nilesh2jcommerce)
57+
* [magento/magento2#11576](https://github.com/magento/magento2/pull/11576) -- Fix Support for new Email address domain #4547 (by @elachino)
58+
159
2.1.15
260
=============
361
* GitHub issues:

app/code/Magento/AdminNotification/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"lib-libxml": "*"
1111
},
1212
"type": "magento2-module",
13-
"version": "100.1.5",
13+
"version": "100.1.6",
1414
"license": [
1515
"OSL-3.0",
1616
"AFL-3.0"

app/code/Magento/AdvancedPricingImportExport/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "100.1.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.1.5",
16+
"version": "100.1.6",
1717
"license": [
1818
"OSL-3.0",
1919
"AFL-3.0"

app/code/Magento/Authorization/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"magento/framework": "100.1.*"
88
},
99
"type": "magento2-module",
10-
"version": "100.1.4",
10+
"version": "100.1.5",
1111
"license": [
1212
"OSL-3.0",
1313
"AFL-3.0"

app/code/Magento/Authorizenet/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"magento/framework": "100.1.*"
1414
},
1515
"type": "magento2-module",
16-
"version": "100.1.8",
16+
"version": "100.1.9",
1717
"license": [
1818
"proprietary"
1919
],

app/code/Magento/Backend/Block/System/Store/Delete/Form.php

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,39 @@
55
*/
66
namespace Magento\Backend\Block\System\Store\Delete;
77

8+
use Magento\Backup\Helper\Data as BackupHelper;
9+
use Magento\Framework\App\ObjectManager;
10+
811
/**
912
* Adminhtml cms block edit form
1013
*
1114
* @author Magento Core Team <core@magentocommerce.com>
1215
*/
1316
class Form extends \Magento\Backend\Block\Widget\Form\Generic
1417
{
18+
/**
19+
* @var BackupHelper
20+
*/
21+
private $backup;
22+
23+
/**
24+
* @param \Magento\Backend\Block\Template\Context $context
25+
* @param \Magento\Framework\Registry $registry
26+
* @param \Magento\Framework\Data\FormFactory $formFactory
27+
* @param array $data
28+
* @param BackupHelper|null $backup
29+
*/
30+
public function __construct(
31+
\Magento\Backend\Block\Template\Context $context,
32+
\Magento\Framework\Registry $registry,
33+
\Magento\Framework\Data\FormFactory $formFactory,
34+
array $data = [],
35+
BackupHelper $backup = null
36+
) {
37+
parent::__construct($context, $registry, $formFactory, $data);
38+
$this->backup = $backup ?: ObjectManager::getInstance()->get(BackupHelper::class);
39+
}
40+
1541
/**
1642
* Init form
1743
*
@@ -25,7 +51,7 @@ protected function _construct()
2551
}
2652

2753
/**
28-
* {@inheritdoc}
54+
* @inheritDoc
2955
*/
3056
protected function _prepareForm()
3157
{
@@ -45,15 +71,21 @@ protected function _prepareForm()
4571

4672
$fieldset->addField('item_id', 'hidden', ['name' => 'item_id', 'value' => $dataObject->getId()]);
4773

74+
$backupOptions = ['0' => __('No')];
75+
$backupSelected = '0';
76+
if ($this->backup->isEnabled()) {
77+
$backupOptions['1'] = __('Yes');
78+
$backupSelected = '1';
79+
}
4880
$fieldset->addField(
4981
'create_backup',
5082
'select',
5183
[
5284
'label' => __('Create DB Backup'),
5385
'title' => __('Create DB Backup'),
5486
'name' => 'create_backup',
55-
'options' => ['1' => __('Yes'), '0' => __('No')],
56-
'value' => '1'
87+
'options' => $backupOptions,
88+
'value' => $backupSelected
5789
]
5890
);
5991

app/code/Magento/Backend/Controller/Adminhtml/System/Store.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
* Store controller
1717
*
1818
* @author Magento Core Team <core@magentocommerce.com>
19+
* @SuppressWarnings(PHPMD.AllPurposeAction)
1920
*/
2021
abstract class Store extends Action
2122
{
@@ -88,6 +89,8 @@ protected function createPage()
8889
* Backup database
8990
*
9091
* @return bool
92+
*
93+
* @deprecated Backup module is to be removed.
9194
*/
9295
protected function _backupDatabase()
9396
{

app/code/Magento/Backend/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"magento/framework": "100.1.*"
2323
},
2424
"type": "magento2-module",
25-
"version": "100.1.10",
25+
"version": "100.1.11",
2626
"license": [
2727
"OSL-3.0",
2828
"AFL-3.0"

app/code/Magento/Backup/Controller/Adminhtml/Index.php

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,14 @@
55
*/
66
namespace Magento\Backup\Controller\Adminhtml;
77

8+
use Magento\Backup\Helper\Data as Helper;
9+
use Magento\Framework\App\ObjectManager;
10+
811
/**
912
* Backup admin controller
1013
*
1114
* @author Magento Core Team <core@magentocommerce.com>
15+
* @SuppressWarnings(PHPMD.AllPurposeAction)
1216
*/
1317
abstract class Index extends \Magento\Backend\App\Action
1418
{
@@ -46,27 +50,47 @@ abstract class Index extends \Magento\Backend\App\Action
4650
*/
4751
protected $maintenanceMode;
4852

53+
/**
54+
* @var Helper
55+
*/
56+
private $helper;
57+
4958
/**
5059
* @param \Magento\Backend\App\Action\Context $context
5160
* @param \Magento\Framework\Registry $coreRegistry
5261
* @param \Magento\Framework\Backup\Factory $backupFactory
5362
* @param \Magento\Framework\App\Response\Http\FileFactory $fileFactory
5463
* @param \Magento\Backup\Model\BackupFactory $backupModelFactory
5564
* @param \Magento\Framework\App\MaintenanceMode $maintenanceMode
65+
* @param Helper|null $helper
5666
*/
5767
public function __construct(
5868
\Magento\Backend\App\Action\Context $context,
5969
\Magento\Framework\Registry $coreRegistry,
6070
\Magento\Framework\Backup\Factory $backupFactory,
6171
\Magento\Framework\App\Response\Http\FileFactory $fileFactory,
6272
\Magento\Backup\Model\BackupFactory $backupModelFactory,
63-
\Magento\Framework\App\MaintenanceMode $maintenanceMode
73+
\Magento\Framework\App\MaintenanceMode $maintenanceMode,
74+
Helper $helper = null
6475
) {
6576
$this->_coreRegistry = $coreRegistry;
6677
$this->_backupFactory = $backupFactory;
6778
$this->_fileFactory = $fileFactory;
6879
$this->_backupModelFactory = $backupModelFactory;
6980
$this->maintenanceMode = $maintenanceMode;
81+
$this->helper = $helper ?: ObjectManager::getInstance()->get(Helper::class);
7082
parent::__construct($context);
7183
}
84+
85+
/**
86+
* @inheritDoc
87+
*/
88+
public function dispatch(\Magento\Framework\App\RequestInterface $request)
89+
{
90+
if (!$this->helper->isEnabled()) {
91+
return $this->_redirect('*/*/disabled');
92+
}
93+
94+
return parent::dispatch($request);
95+
}
7296
}
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
declare(strict_types=1);
8+
9+
namespace Magento\Backup\Controller\Adminhtml\Index;
10+
11+
use Magento\Backend\App\Action;
12+
use Magento\Backend\App\Action\Context;
13+
use Magento\Framework\View\Result\PageFactory;
14+
15+
/**
16+
* Inform that backup is disabled.
17+
*/
18+
class Disabled extends Action
19+
{
20+
/**
21+
* @see _isAllowed()
22+
*/
23+
const ADMIN_RESOURCE = 'Magento_Backend::backup';
24+
25+
/**
26+
* @var PageFactory
27+
*/
28+
private $pageFactory;
29+
30+
/**
31+
* @param Context $context
32+
* @param PageFactory $pageFactory
33+
*/
34+
public function __construct(Context $context, PageFactory $pageFactory)
35+
{
36+
parent::__construct($context);
37+
$this->pageFactory = $pageFactory;
38+
}
39+
40+
/**
41+
* @inheritDoc
42+
*/
43+
public function execute()
44+
{
45+
return $this->pageFactory->create();
46+
}
47+
}

0 commit comments

Comments
 (0)