File tree Expand file tree Collapse file tree 2 files changed +3
-16
lines changed
Block/Adminhtml/Order/Create/Form Expand file tree Collapse file tree 2 files changed +3
-16
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ protected function _addAdditionalFormElementData(AbstractElement $element)
147
147
{
148
148
switch ($ element ->getId ()) {
149
149
case 'email ' :
150
- $ element ->setRequired (0 );
150
+ $ element ->setRequired (1 );
151
151
$ element ->setClass ('validate-email admin__control-text ' );
152
152
break ;
153
153
}
Original file line number Diff line number Diff line change @@ -2012,26 +2012,13 @@ protected function _validate()
2012
2012
}
2013
2013
2014
2014
/**
2015
- * Retrieve or generate new customer email.
2015
+ * Retrieve new customer email.
2016
2016
*
2017
2017
* @return string
2018
2018
*/
2019
2019
protected function _getNewCustomerEmail ()
2020
2020
{
2021
- $ email = $ this ->getData ('account/email ' );
2022
- if (empty ($ email )) {
2023
- $ host = $ this ->_scopeConfig ->getValue (
2024
- self ::XML_PATH_DEFAULT_EMAIL_DOMAIN ,
2025
- \Magento \Store \Model \ScopeInterface::SCOPE_STORE
2026
- );
2027
- $ account = time ();
2028
- $ email = $ account . '@ ' . $ host ;
2029
- $ account = $ this ->getData ('account ' );
2030
- $ account ['email ' ] = $ email ;
2031
- $ this ->setData ('account ' , $ account );
2032
- }
2033
-
2034
- return $ email ;
2021
+ return $ this ->getData ('account/email ' );
2035
2022
}
2036
2023
2037
2024
/**
You can’t perform that action at this time.
0 commit comments