forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request magento#1017 from magento-folks/develop
[Folks] Bug Fixes
- Loading branch information
Showing
921 changed files
with
6,201 additions
and
5,663 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
...ode/Magento/Customer/Model/Config/Backend/CreateAccount/DisableAutoGroupAssignDefault.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
/** | ||
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) | ||
*/ | ||
namespace Magento\Customer\Model\Config\Backend\CreateAccount; | ||
|
||
class DisableAutoGroupAssignDefault extends \Magento\Framework\App\Config\Value | ||
{ | ||
/** | ||
* @var \Magento\Eav\Model\Config | ||
*/ | ||
protected $eavConfig; | ||
|
||
/** | ||
* @param \Magento\Framework\Model\Context $context | ||
* @param \Magento\Framework\Registry $registry | ||
* @param \Magento\Framework\App\Config\ScopeConfigInterface $config | ||
* @param \Magento\Eav\Model\Config $eavConfig | ||
* @param \Magento\Framework\Model\Resource\AbstractResource $resource | ||
* @param \Magento\Framework\Data\Collection\Db $resourceCollection | ||
* @param array $data | ||
*/ | ||
public function __construct( | ||
\Magento\Framework\Model\Context $context, | ||
\Magento\Framework\Registry $registry, | ||
\Magento\Framework\App\Config\ScopeConfigInterface $config, | ||
\Magento\Eav\Model\Config $eavConfig, | ||
\Magento\Framework\Model\Resource\AbstractResource $resource = null, | ||
\Magento\Framework\Data\Collection\Db $resourceCollection = null, | ||
array $data = [] | ||
) { | ||
$this->eavConfig = $eavConfig; | ||
parent::__construct($context, $registry, $config, $resource, $resourceCollection, $data); | ||
} | ||
|
||
/** | ||
* Save EAV default value after save | ||
* | ||
* @return $this | ||
*/ | ||
public function afterSave() | ||
{ | ||
$result = parent::afterSave(); | ||
|
||
$attributeObject = $this->eavConfig->getAttribute('customer', 'disable_auto_group_change'); | ||
$attributeObject->setData('default_value', $this->getValue()); | ||
$attributeObject->save(); | ||
|
||
return $result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
db_credentials: | ||
dbHost: {{db_host}} | ||
dbUser: {{db_user}} | ||
dbPassword: {{db_password}} | ||
dbName: {{db_name}} | ||
url: | ||
base_url: {{url}} | ||
backend_frontname: backend |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
{ | ||
"require": { | ||
"magento/mtf": "dev-master", | ||
"magento/mtf": "dev-develop", | ||
"php": ">=5.4.0", | ||
"phpunit/phpunit": "4.1.0", | ||
"phpunit/phpunit-selenium": ">=1.2", | ||
"netwing/selenium-server-standalone": ">=2.35" | ||
}, | ||
"autoload": { | ||
"psr-0": { | ||
"Mtf\\": "lib", | ||
"Magento\\": "", | ||
"": ["testsuites", "generated", "lib", "tests/app"] | ||
"psr-4": { | ||
"Mtf\\": ["lib/Mtf/", "generated/Mtf/", "testsuites/Mtf/"], | ||
"Magento\\": ["generated/Magento/", "tests/app/Magento/"], | ||
"Test\\": "generated/Test/" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
# @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com) | ||
db_credentials: | ||
dbHost: '127.0.0.1' | ||
dbUser: 'root' | ||
dbPassword: '123123q' | ||
dbName: 'default' | ||
url: | ||
base_url: 'http://127.0.0.1/magento2/' | ||
backend_frontname: 'backend' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.