Skip to content

Commit 8483c66

Browse files
author
Cari Spruiell
committed
Merge remote-tracking branch 'origin/develop' into develop
2 parents 94f5497 + 198506b commit 8483c66

File tree

111 files changed

+3154
-1298
lines changed

Some content is hidden

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

111 files changed

+3154
-1298
lines changed

app/code/Magento/Backend/Model/Auth.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ public function login($username, $password)
175175
'backend_auth_user_login_failed',
176176
['user_name' => $username, 'exception' => $e]
177177
);
178-
self::throwException(__('Please correct the user name or password.'));
178+
self::throwException(__($e->getMessage()? : 'Please correct the user name or password.'));
179179
}
180180
}
181181

app/code/Magento/Backend/Test/Unit/Model/AuthTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ public function testLoginFailed()
5959
->method('create')
6060
->with('Magento\Backend\Model\Auth\Credential\StorageInterface')
6161
->will($this->returnValue($this->_credentialStorage));
62-
$exceptionMock = new \Magento\Framework\Exception\LocalizedException(__('message'));
62+
$exceptionMock =
63+
new \Magento\Framework\Exception\LocalizedException(__('Please correct the user name or password.'));
6364
$this->_credentialStorage
6465
->expects($this->once())
6566
->method('login')

app/code/Magento/Bundle/Api/Data/LinkInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
namespace Magento\Bundle\Api\Data;
99

10+
/**
11+
* Interface LinkInterface
12+
* @api
13+
*/
1014
interface LinkInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1115
{
1216
const PRICE_TYPE_FIXED = 0;

app/code/Magento/Bundle/Api/Data/OptionInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@
77

88
namespace Magento\Bundle\Api\Data;
99

10+
/**
11+
* Interface OptionInterface
12+
* @api
13+
*/
1014
interface OptionInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1115
{
1216
/**

app/code/Magento/Bundle/Api/Data/OptionTypeInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
*/
77
namespace Magento\Bundle\Api\Data;
88

9+
/**
10+
* Interface OptionTypeInterface
11+
* @api
12+
*/
913
interface OptionTypeInterface extends \Magento\Framework\Api\ExtensibleDataInterface
1014
{
1115
/**

app/code/Magento/Bundle/Api/ProductLinkManagementInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
*/
77
namespace Magento\Bundle\Api;
88

9+
/**
10+
* Interface for Management of ProductLink
11+
* @api
12+
*/
913
interface ProductLinkManagementInterface
1014
{
1115
/**

app/code/Magento/Bundle/Api/ProductOptionRepositoryInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
*/
77
namespace Magento\Bundle\Api;
88

9+
/**
10+
* Interface ProductOptionRepositoryInterface
11+
* @api
12+
*/
913
interface ProductOptionRepositoryInterface
1014
{
1115
/**

app/code/Magento/Bundle/Api/ProductOptionTypeListInterface.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
*/
77
namespace Magento\Bundle\Api;
88

9+
/**
10+
* Interface ProductOptionTypeListInterface
11+
* @api
12+
*/
913
interface ProductOptionTypeListInterface
1014
{
1115
/**

app/code/Magento/Bundle/Block/Adminhtml/Catalog/Product/Edit/Tab/Attributes/Extend.php

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,12 @@ public function getOptions()
110110
*/
111111
public function isDisabledField()
112112
{
113-
return $this->getProduct()->getId() &&
114-
$this->getAttribute()->getAttributeCode() === 'price' ||
115-
$this->getElement()->getReadonly();
113+
return $this->_getData('is_disabled_field')
114+
|| ($this->getProduct()->getId()
115+
&& $this->getAttribute()->getAttributeCode() === 'price'
116+
)
117+
|| $this->getElement()->getReadonly();
118+
116119
}
117120

118121
/**
@@ -142,7 +145,9 @@ public function getExtendedElement($switchAttributeCode)
142145
'values' => $this->getOptions(),
143146
'value' => $switchAttributeCode,
144147
'class' => 'required-entry next-toinput',
145-
'disabled' => $this->isDisabledField()
148+
'no_span' => true,
149+
'disabled' => $this->isDisabledField(),
150+
'value' => $this->getProduct()->getData($switchAttributeCode),
146151
]
147152
);
148153
}

app/code/Magento/Bundle/Pricing/Price/BundleOptionPriceInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
/**
99
* Option price interface
10+
* @api
1011
*/
1112
interface BundleOptionPriceInterface
1213
{

0 commit comments

Comments
 (0)