Skip to content

Commit e42d22d

Browse files
committed
Merge remote-tracking branch 'github/develop' into public-pulls
2 parents 2f89843 + 7cf9ebf commit e42d22d

File tree

18 files changed

+69
-36
lines changed

18 files changed

+69
-36
lines changed

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Groupprice.php renamed to app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
*
1111
* @SuppressWarnings(PHPMD.LongVariable)
1212
*/
13-
class Groupprice extends \Magento\Catalog\Model\Product\Attribute\Backend\Groupprice\AbstractGroupprice
13+
class GroupPrice extends \Magento\Catalog\Model\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice
1414
{
1515
/**
1616
* Catalog product attribute backend groupprice
1717
*
18-
* @var \Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice
18+
* @var \Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice
1919
*/
20-
protected $_productAttributeBackendGroupprice;
20+
protected $_productAttributeBackendGroupPrice;
2121

2222
/**
2323
* @param \Magento\Directory\Model\CurrencyFactory $currencyFactory
@@ -26,7 +26,7 @@ class Groupprice extends \Magento\Catalog\Model\Product\Attribute\Backend\Groupp
2626
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config
2727
* @param \Magento\Catalog\Model\Product\Type $catalogProductType
2828
* @param \Magento\Customer\Api\GroupManagementInterface $groupManagement
29-
* @param \Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice $productAttributeBackendGroupprice
29+
* @param \Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice $productAttributeBackendGroupPrice
3030
*/
3131
public function __construct(
3232
\Magento\Directory\Model\CurrencyFactory $currencyFactory,
@@ -35,9 +35,9 @@ public function __construct(
3535
\Magento\Framework\App\Config\ScopeConfigInterface $config,
3636
\Magento\Catalog\Model\Product\Type $catalogProductType,
3737
\Magento\Customer\Api\GroupManagementInterface $groupManagement,
38-
\Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice $productAttributeBackendGroupprice
38+
\Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice $productAttributeBackendGroupPrice
3939
) {
40-
$this->_productAttributeBackendGroupprice = $productAttributeBackendGroupprice;
40+
$this->_productAttributeBackendGroupPrice = $productAttributeBackendGroupPrice;
4141
parent::__construct(
4242
$currencyFactory,
4343
$storeManager,
@@ -51,11 +51,11 @@ public function __construct(
5151
/**
5252
* Retrieve resource instance
5353
*
54-
* @return \Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice
54+
* @return \Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice
5555
*/
5656
protected function _getResource()
5757
{
58-
return $this->_productAttributeBackendGroupprice;
58+
return $this->_productAttributeBackendGroupPrice;
5959
}
6060

6161
/**

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Groupprice/AbstractGroupprice.php renamed to app/code/Magento/Catalog/Model/Product/Attribute/Backend/GroupPrice/AbstractGroupPrice.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
* Copyright © 2015 Magento. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
namespace Magento\Catalog\Model\Product\Attribute\Backend\Groupprice;
6+
namespace Magento\Catalog\Model\Product\Attribute\Backend\GroupPrice;
77

88
use Magento\Catalog\Model\Product\Attribute\Backend\Price;
99
use Magento\Customer\Api\GroupManagementInterface;
1010

1111
/**
1212
* Catalog product abstract group price backend attribute model
1313
*/
14-
abstract class AbstractGroupprice extends Price
14+
abstract class AbstractGroupPrice extends Price
1515
{
1616
/**
1717
* Website currency codes and rates
@@ -100,7 +100,7 @@ protected function _getWebsiteCurrencyRates()
100100
/**
101101
* Retrieve resource instance
102102
*
103-
* @return \Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice
103+
* @return \Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice
104104
*/
105105
abstract protected function _getResource();
106106

app/code/Magento/Catalog/Model/Product/Attribute/Backend/Tierprice.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*/
1212
namespace Magento\Catalog\Model\Product\Attribute\Backend;
1313

14-
class Tierprice extends \Magento\Catalog\Model\Product\Attribute\Backend\Groupprice\AbstractGroupprice
14+
class Tierprice extends \Magento\Catalog\Model\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice
1515
{
1616
/**
1717
* Catalog product attribute backend tierprice

app/code/Magento/Catalog/Model/Resource/Product/Attribute/Backend/Groupprice.php renamed to app/code/Magento/Catalog/Model/Resource/Product/Attribute/Backend/GroupPrice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
*/
66
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend;
77

8-
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice\AbstractGroupprice;
8+
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice;
99

1010
/**
1111
* Catalog product group price backend attribute model
1212
*
1313
* @author Magento Core Team <core@magentocommerce.com>
1414
*/
15-
class Groupprice extends AbstractGroupprice
15+
class GroupPrice extends AbstractGroupPrice
1616
{
1717
/**
1818
* Initialize connection and define main table

app/code/Magento/Catalog/Model/Resource/Product/Attribute/Backend/Groupprice/AbstractGroupprice.php renamed to app/code/Magento/Catalog/Model/Resource/Product/Attribute/Backend/GroupPrice/AbstractGroupPrice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
*
1010
* @author Magento Core Team <core@magentocommerce.com>
1111
*/
12-
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice;
12+
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice;
1313

14-
abstract class AbstractGroupprice extends \Magento\Framework\Model\Resource\Db\AbstractDb
14+
abstract class AbstractGroupPrice extends \Magento\Framework\Model\Resource\Db\AbstractDb
1515
{
1616
/**
1717
* Load Tier Prices for product

app/code/Magento/Catalog/Model/Resource/Product/Attribute/Backend/Tierprice.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
*/
66
namespace Magento\Catalog\Model\Resource\Product\Attribute\Backend;
77

8-
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\Groupprice\AbstractGroupprice;
8+
use Magento\Catalog\Model\Resource\Product\Attribute\Backend\GroupPrice\AbstractGroupPrice;
99

1010
/**
1111
* Catalog product tier price backend attribute model
1212
*
1313
* @author Magento Core Team <core@magentocommerce.com>
1414
*/
15-
class Tierprice extends AbstractGroupprice
15+
class Tierprice extends AbstractGroupPrice
1616
{
1717
/**
1818
* Initialize connection and define main table

app/code/Magento/Catalog/Model/Resource/Setup.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -561,7 +561,7 @@ public function getDefaultEntities()
561561
'type' => 'decimal',
562562
'label' => 'Group Price',
563563
'input' => 'text',
564-
'backend' => 'Magento\Catalog\Model\Product\Attribute\Backend\Groupprice',
564+
'backend' => 'Magento\Catalog\Model\Product\Attribute\Backend\GroupPrice',
565565
'required' => false,
566566
'sort_order' => 2,
567567
'global' => \Magento\Catalog\Model\Resource\Eav\Attribute::SCOPE_WEBSITE,

app/code/Magento/Checkout/view/frontend/web/js/region-updater.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,10 @@ define([
6161
*/
6262
_renderSelectOption: function(selectElement, key, value) {
6363
selectElement.append($.proxy(function() {
64-
if (value.code && $(value.name).is('span')) {
64+
var name = value.name.replace(/[!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~]/g, "\\$&");
65+
if (value.code && $(name).is('span')) {
6566
key = value.code;
66-
value.name = $(value.name).text();
67+
value.name = $(name).text();
6768
}
6869
$.template('regionTemplate', this.options.regionTemplate);
6970
if (this.options.defaultRegion === key) {
@@ -173,4 +174,4 @@ define([
173174
});
174175

175176
return $.mage.regionUpdater;
176-
});
177+
});

dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerFrontendEntity.php renamed to dev/tests/functional/tests/app/Magento/Customer/Test/TestCase/UpdateCustomerFrontendEntityTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
*
3939
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
4040
*/
41-
class UpdateCustomerFrontendEntity extends Injectable
41+
class UpdateCustomerFrontendEntityTest extends Injectable
4242
{
4343
/**
4444
* Factory for Fixtures
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
"customer/data/firstname";"customer/data/lastname";"customer/data/email";"address/data/firstname";"address/data/lastname";"address/data/company";"address/data/street";"address/data/city";"address/data/country_id";"address/data/region_id";"address/data/region";"address/data/telephone";"address/data/fax";"address/data/postcode";"constraint"
22
"Jany %isolation%";"Doe %isolation%";"janydoe%isolation%@example.com";"Jany %isolation%";"Doe %isolation%";"Company %isolation%";"Some street %isolation%";"City %isolation%";"United States";"Colorado";"-";"555-888-111-999";"161-999-8888";"12345";"assertCustomerAddressSuccessSaveMessage, assertCustomerDefaultAddresses"
33
"Jonny %isolation%";"Doe %isolation%";"jonny%isolation%@example.com";"John %isolation%";"Doe %isolation%";"Company %isolation%";"Some street %isolation%";"City %isolation%";"United Kingdom";"-";"Region %isolation%";"0123456789-02134567";"5555-874-99634";"12345";"assertCustomerAddressSuccessSaveMessage, assertCustomerDefaultAddresses"
4+
"Jean %isolation%";"Reno %isolation%";"jean%isolation%@example.com";"Jean %isolation%";"Reno %isolation%";"Magento %isolation%";"18-20 Rue Maréchal Leclerc";"Quintin";"France";"Côtes-d'Armor";"-";"555-888-111-999";"161-999-8888";"12345";"assertCustomerAddressSuccessSaveMessage, assertCustomerDefaultAddresses"

0 commit comments

Comments
 (0)