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()
6565 return ;
6666 }
6767 $ 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 );
8072 }
8173 $ this ->redirectToEdit ($ model , $ data );
82- return ;
74+ return $ this -> getResponse () ;
8375 }
8476 $ userRoles = $ this ->getRequest ()->getParam ('roles ' , []);
8577 if (count ($ userRoles )) {
You can’t perform that action at this time.
0 commit comments