File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
app/code/Magento/User/Controller/Adminhtml/User Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -65,21 +65,13 @@ public function execute()
65
65
return ;
66
66
}
67
67
$ model ->setData ($ this ->_getAdminUserData ($ data ));
68
- try {
69
- $ errors = $ model ->validate ();
70
- if ($ errors !== true && !empty ($ errors )) {
71
- foreach ($ errors as $ error ) {
72
- $ this ->messageManager ->addError ($ error );
73
- }
74
- $ this ->redirectToEdit ($ model , $ data );
75
- return ;
76
- }
77
- } catch (\Magento \Framework \Validator \Exception $ e ) {
78
- if ($ e ->getMessage ()) {
79
- $ this ->messageManager ->addError ($ e ->getMessage ());
68
+ $ errors = $ model ->validate ();
69
+ if ($ errors !== true && !empty ($ errors )) {
70
+ foreach ($ errors as $ error ) {
71
+ $ this ->messageManager ->addError ($ error );
80
72
}
81
73
$ this ->redirectToEdit ($ model , $ data );
82
- return ;
74
+ return $ this -> getResponse () ;
83
75
}
84
76
$ userRoles = $ this ->getRequest ()->getParam ('roles ' , []);
85
77
if (count ($ userRoles )) {
You can’t perform that action at this time.
0 commit comments